Hi there a_bluebike,
Thank you for posting to Apple Support Communities.
Try testing the issue in safe mode. This will start up your Mac so that it performs certain checks and prevents some software from automatically loading or opening, which could help narrow down the cause of the issue. This article will walk you through the steps: Start up your Mac in safe mode - Apple Support
Apple silicon
1. Shut down your Mac.
2. Turn on your Mac and continue to press and hold the power button until you see the startup options window.
3. Select your startup disk, then press and hold the Shift key while clicking “Continue in Safe Mode.”
4. Log in to your Mac. You might be asked to log in again.
Intel processor
1. Turn on or restart your Mac, then immediately press and hold the Shift key as your Mac starts up.
2. Release the key when you see the login window, then log in to your Mac.
3. You might be asked to log in again. On either the first or second login window, you should see ”Safe Boot” in the upper-right corner of the window.
Then, restart as normal to test if the issue continues.
If it does, are you able to customize the controls so the trackpad works as you'd like by changing its' settings? Learn how to do this: Change Trackpad settings on Mac - Apple Support
That should help. Let us know how it goes.
Take care.