I’ve had the same issue for a while. Today after reading this thread and trying different solutions I discovered it was mainly caused by my rudder pedal dead zone being set to zero. I set them to 5% and it seems to have fixed the problem. This is for VR. Changing the mouse settings from “lock” to “legacy” is only an option to try for non-VR flight.