On Redmi 9T/Note 9 4G, whenever I try to switch up or turn down the volume by pressing the volume key, the phone locks.
To be sure it isn't a hardware problem, I downloaded a third party volume control panel to display instead of the default one and everything works fine.
It's a bug on this...