Found a way to fix it camera stutter.
It is enough to reduce the frequency of updating the mouse to a minimum (in my case, from 500 Hz to 125 Hz) and the camera became much smoother.