Can you suggestion and commands to run that might provide clues?
Other than switching between use of DDX display drivers (intel, nouveau) and DIX
driver (modesetting, which supports: AMD, Intel, NVidia, other) to see if bad
behavior persists, I have only one other possible suggestion:
Older systems used only various specific input drivers, e.g.:
xserver-xorg-input-kbd
xserver-xorg-input-mouse
xserver-xorg-input-evdev
If these are installed, you might try removing them, thus having only the newer
*libinput* drivers available for use.
# dpkg -l | grep input-kbd
# dpkg -l | grep xorg-input
ii xserver-xorg-input-all 1:7.7+23 amd64
X.Org X server -- input driver metapackage
ii xserver-xorg-input-libinput 1.2.1-1+b1 amd64
X.Org X server -- libinput input driver