It only happened on Windows 11 with my new mouse, I haven't tested it with my old one yet but will update when I do. I have not found a current solution to this problem but hopefully, I can find one.
My Mouse: Razer DeathAdder V2 X Hyperspeed, and my old one is a G502 X Wired.
I could be something to do with the Razer software but not entirely sure