Macbook Pro M2 shrinks display, hiding notch and widening bezels on the side
I have a 16" M2 Macbook Pro, and I've noticed that some times the display shrinks down so that the top and size bezels are quite large. The notch is effectively hidden, and 1 cm or so of screen is black on either side. This happens whether applications are fullscreen or windowed. Taking a screenshot reveals that the display is still at its full resolution, just shrunk a tiny bit and with a black border. This happens usually within a day of turning on the computer, and restarting the computer is the only thing that fixes it. I have not used any external monitors with the computer. I am using MacOS Ventura.
If anyone else has this problem, or knows how to rectify it, please let me know. Restarting my computer once a day is becoming a pain.
MacBook Pro (M2 Max, 2023)