You may try this: https://wayland.freedesktop.org/libinput/doc/latest/absolute-coordinate-ranges.html#absolute-coordinate-ranges-fix
But once you find nothing works, try this:
https://gitlab.com/warningnonpotablewater/libinput-config
On my XPS 13 9370, /etc/libinput.conf: