Sounds like either a recent Windows Update, or an issue with the GPU(Graphics Card) driver. Which could also be a conflict with a recent Windows Update, and the current GPU Driver. Check your recent Windows Updates, and try to roll them back if you can. You can also try uninstalling, and then reinstalling the latest version of the driver for your graphics card. Microsoft has been breaking a lot of things with their updates over the last couple of years. I'm going to wait a bit before the free Windows 11 update, and test it thoroughly before updating my main system.
One update several months back, ruined the bootloader(MBR) on my main desktop. It was telling me there is no Operating System found during the UEFI boot process. I originally thought the hard drive died on me... Ended up being that a Windows Update screwed with the bootloader partition(not sure if it got corrupted or what...). Luckily I've been learning/working with technology for 20+ years, and sorted it out in about an hour. Ended up having to boot up to a command prompt using a Windows 10 bootable media(USB Flash Drive), run the command prompt from there, then run some commands in the cmd to fix some issues with the bootloader(MBR). Had tried the automated repair options on the bootable media before all that, but that didn't resolve the issue.
My last job was for a large corporation, with hundreds of thousands of devices in use, working on the tech help desk. There was so many issues with almost every Windows update. A ton of computers wound up getting bricked, or stuck in what I call "Repair Loop". Tries to repair itself, fails, then reboots, and repeats. Super fun trying to walk technologically challenged people through all that nonsense... XD When they don't even know that all displays need to be directly connected to a computer(or "the box"), rather than daisy chained one to another... fun times
Not sure why the app deployment team didn't thoroughly test all windows updates with machines before pushing them out. But, the company uses many different devices(Dell, HP, Lenovo), and models.
So yeah, long story short. Check on your graphics card driver(I would completely uninstall and then reinstall the latest version for your card), and then any Windows Updates that may have been installed recently.
EDIT: If all that fails, I would find an app to keep an eye on your CPU temp, and make sure it's not overheating, which could cause this as well.