There are many apps that target this specific issue available through the Play store, and many of them do not even require root access. The search term I would recommend that you use would be "screen calibration" or similar; due to the sheer volume of them, I won't suggest any in particular but I have tried multiple myself throughout the years (while exercising common sense, e.g., checking reviews prior to downloading) and they seem to do the trick perfectly. Some are targeted toward mobile repair technicians and come with multiple utilities and test functions (such as for other sensors and screen functions), I tend to find these more "trustworthy" in that the targeted consumers are able to leave more competent and detailed reviews.
Edit: @And0réCarini I know some of them do work, typically the type that has you tap a target within four quadrants of the screen, and it typically does not require root. However, please note that 1) dependent on the cause, sensitivity might not be the issue or what needs to be adjusted, and 2) depending on your device model, there could be other variables at play (e.g., Samsung Note devices have two separate digitizers, one for the stylus and one for finger touches).
It may benefit you to first activate developer mode and enable the show screen touches option to see if there are any visual clues as to what's going on. You can also access your device's diagnostics mode (aka, [advanced] test menu, example) to see if the touch test can help identify any further details. And, if on the off-chance it is due to a faulty / damaged digitizer, as a temporary measure there are apps available that allow you to custom set boundary areas on your screen that will block touch inputs, which can mitigate unintended input behavior (assuming it's stemming from a contained localized area).
Finally, I was able to find this post (root required) in regards to a potential method to adjust your touch sensitivity, but please note this is specific to the Pixel 2 XL so YMMV.
On a separate note, it seems that the minimum distance for swipes to activate are determined by the application's code (see here and here); as the distance is predetermined, I would infer another possibility aside from a sensitivity issue may be a multi-touch issue causing a false swipe input to be registered; my above suggestions may help confirm or eliminate that possibility.