If you resize the composition using the "Crop Comp to Region of Interest" feature in version 17.5.1, there will be a difference in the display between 2D and 3D layers with the same X and Y numbers. It didn't happen in versions prior to 17.1.4.
The following reproduction procedure 1, Creating a composition 2, Create a new layer 3, Resize the composition using "Crop Comp to Region of Interest" 4, Check the 3D layer.
Other than "Crop Comp to Region of Interest", the same phenomenon occurs when resizing with "Composition Settings / Advanced / Anchor" selected other than the center. Also, if you open a project file saved in version 17.5 or later in version 17.1.4 or earlier, the displayed position will change.
The workaround I've found is to place the camera layer to restore the display.