Why is collision with my mesh changing the player's view?

I added a constraint to the actor to stop it from rotating and this fixed the issue .