I suggest you do not change the rotation of the component directly if the camera is under any spring arm component, instead use “set control rotation” from the player controller, the spring arm component reads its target rotation from the controller.
Doing it this way, as long as your camera is under the spring arm component, it should correctly change its rotation.