SpaceBar key getting stucked randomly when utilizing a shortcut.

Using keyboard shortcuts with a modifier key + the spacebar sometimes makes the assign keystroke to get stucked on pressing the spacebar, even if no key is being pressed, or if you start typing anything else to get out of it, the spacebar keeps being pressed for like 30 seconds or so.

On the footage, the spacebar activates the "panning" tool on photoshop, it keeps stuck on the tool since the spacebar is "still being pressed" because of the key-stuck issue.

Not sure why it triggers often, it happens on any app, with any modifier key + spacebar combination.

On Mac OS Ventura 13.5.2 (22G91)