mask-to-position only makes a perfect match for a comp size layer.
if you want the mask path as position key frames you could make
the path on a new dummy solid layer at the comp size and then copy and paste it to position keyframes
of your target layer, get rid of the dummy layer, and you won't get any position shift.
no expression or transformation changes necessary for the pasted layer.