It's not mentioned in the game, but when the stamina bar runs out, the character starts moving and spinning slowly. This is done so that you can't rotate all the time. Maybe the problem was related to this. If it has nothing to do with stamina, I will think how to find and solve it.