Instead of using two cameras, you can have a SpringArmComponent attached to the root. When you switch to third person, attach the camera to the SpringArmComponent, otherwise attach the camera to the root component directly. You would need to set UseControllerViewRotation for the camera accordingly and also reset the pitch of the relative camera rotation to 0 after switching to third person.