Still happening in 12.4 on a brand new Mac Studio M1 Max, with a Logitech MX Master. Rebooting the mouse fixes it until it happens again. Haven't understood yet why it happens exactly.
Between this issue, and that other crazy bug where a screen randomly freezes when two are connected, Monterey has been a workflow killer for now, and it's been only three days with this new machine.