Why did all my menus go blank and views become illegible?
There are a couple clues here that indicate this is a software corruption of the graphics buffers and not a hardware issue.


The issue corrects immediately after a reboot
The issue doesn’t affect the entire screen
The issue affects layers of image and not the overall picture


Since the graphics architecture of macOS is that each layer of an image is allocated memory and then the software determines if a specific button or frame or windows is on screen and then if it’s visible on screen (whether minimized and visible as a thumbnail or if it’s not obscured by an element more front most than it) the corruption shown is either blanking or fuzzing the bits in one layer.

Hardware errors tend to get worse with time (often rapidly deteriorating) and the hardware doesn’t get cooler or somehow fix itself when the OS reloads. Yes the drivers are restarted and hardware might power down most of the units briefly as part of a restart, but in general it’s the same Mac after the restart as it was before.

Now, none of that helps immediately.

The next time you get this corruption, I would open system preferences and make a new account. Log out of your current account that has the glitches and see if the glitches happen when you log in to the new account. If so, you know the glitches are either hardware or corruption in the base system. That’s good since you can either reinstall the OS or get hardware repair.

If logging in to the new user is clean - no issues. Log out of the new user and back in to your old user - not restarting the OS yet.

If the log in to the old user is glitchy - you need to isolate the software causes (update the OS, update your apps, clean your settings) or just reboot more often. If the old user is not glitchy, you have the least actionable case - it’s some corruption that happens rarely or by chance and “fixing” it will be hard if it’s not a system bug that Apple eventually fixes.

Good luck, keep your backups current in case you get tired of this and choose to erase the OS entirely, reinstall a new OS and then move your data and apps back from the backup.