You have that with a wired Razer? Did you look for mouse firmware updates? The firmware may fix things like that.
I have wireless viper ultimate which is both wired and wireless and haven't seen a single issue on Windows 10 and 11 other than wireless interference which is 100% fixed anyway by using the dock and moving the usb receiver next to the mouse. So, not seeing any mouse issues wired or wireless.
However, a lot goes into the mouse including Windows DWM, etc, the GPU, the USB port, computer performance, 3rd party software, and more.
Technically, one post with everyone posting this and that isn't good here as there's various potential computer side issues.