DOSBox-X developer here:
SDL 1.x by default detects mouse motion in capture mode by centering the cursor in the window, then the next time it processes events, measures "movement" by how far the cursor has moved from the center using GetCursorPos().
SDL 1.x expects older Windows behavior where SetCursorPos() has an immediate effect.
Under Windows 10 (and possibly Windows 8?), SetCursorPos() does NOT have an immediate effect. GetCursorPos() will not return the new position until about 1/60th of a second later.
When SDL 1.x is given a chance to process window events too often (in less than 1/60th of a second), it can "see" a lot of sudden mouse movement because of this issue.
The SDL 1.x library in DOSBox-X was modified to enforce a 1/60th of a second interval to prevent this issue.
The stock SDL 1.x library can be modified in the same way to resolve the issue.
DOSBox-X project: more emulation better accuracy.
DOSLIB and DOSLIB2: Learn how to tinker and hack hardware and software from DOS.