Hi Lukasz,
An option to adjust the UV mapping as needed could be to use a slightly different workflow - the Reference > Mesh Faces mode over the surface with the Subdivide modifier applied (or any similar method). I'm attaching the modified scene (231212_edgeProblem_iToo.max).
I hope that helps.
Best regards,