If a mask is applied to a layer, and then scale keyframes are added to that layer, the ability to use the Selection Tool to click and drag the position of that layer within the Composition Preview Window breaks. Strangely, the effect of this bug is also dependent upon the position of the layer on the timeline. The bug's severity increases the farther to the right the layer is positioned in the timeline.
So, for example, if the layer begins at the start of the timeline, the click-drag on the layer in the Composition Preview Window works as intended. The farther you move the layer to the right in the timeline, the smaller the active clickable area is in the Composition Preview Window, and instead of dragging the layer when you click on it, it drags the mask instead.
I've attached a video showing the bug in action. Up to :33 seconds, you see the expected behavior. After :33, you can see that the Selection Tool can no longer drag the layer and instead drags the mask.
AE 25.1, Windows 11. Tested in AE Safe Mode with all plugins disabled.