That would be because the Pitch is a value between -90 and 90. When you get to 90 it will start going the other way which isn’t going to work by using a calculation that is always adding to it.
This can be resolved by using AddActorLocalRotation instead
AddActorLocalRotation(RotationVelocity * DeltaTime);