There is this one topic where issues of being out of square are addressed and it gets into lots of possible reasons.
Have you tried to repeat this behavior using cardboard? Also, have you tried to move the rectangle to a different place on the bed. Doesn’t seem like much room to work with to position further back, but perhaps a bit a little room to go further left with it. Something about the lower right corner issues might be popping up.