I was having this issue with Logitech vertical mouse and brand new Mac Book Pro M1 and I hope I resolved it using this method:
Options in Security & Privacy > Privacy > Accessibility - Grant Privilege to LogiOptions
Topic:
App & System Services
SubTopic:
Core OS
Tags: