Unreal 5 rotation stucks on 90 degrees Pitch

Further investigation shows that this BUG is caused by use of ‘SetActorLocation()’ function, which alters simulated actor’s location along with physics.

But the problem is that I need the algorithm to work this way and I cannot just remove ‘SetActorLocation()’ function from its place.