Display freezes but mouse works after it un-freezes
I am using a MacBook (Retina, 12", 2017) running MacOS Monterey (12.1). I've had this problem on other MacBooks (also Retina, 12", 2017, and also running MacOS Monterey 12.1) What is the cause of this problem, and if it can be fixed, how would you fix it? It seems like only the display is freezing up but the rest of the system keeps working, such as the mouse and/or video playback. It also only seems to happen within the first 5 minutes of waking it from sleep or sometimes when searching for websites in Chrome.
MacBook, macOS 12.1