UV map transfer with Data transfer modifier gives ripped borders
Found a solution!

transfer uvs with Nearest face interpolated;
select the border edge loops and add them to a new vertex group;
transfer uvs again with the default setting but only for this vertex group.

Shown in this video starting from 22:13