MacBook Air screen turns black and unresponsive if key is pressed during screensaver
I have an M2 MacBook Air. When the screensaver comes on after it is left idle, and I click on the trackpad to wake it up, it sometimes just turns into a black screen. The keys are responsive, and I can play music when I press the media keys. The keystrokes are registered when I have the pages app open as well. But the screen stays black and unresponsive. I have tried turning the brightness up, and it doesn't help. The screen turns on again after I force restart it by holding the power button. This doesn't happen regularly but happens only when the screensaver turns on. Is there a way to solve this issue? My MacOS is updated, by the way. Is there a way to reinstall a display driver or something?
MacBook Air, macOS 13.5