Sounds like a Sleep Mode problem. Do you have your PC set to "Sleep after X Minutes? If power gets cut to the PC or RAM, when power is restored, it will power-up again, POST, and then re-load the Hiberfil.sys (Hibernation file), and then you'll be at a resumed desktop, and have to type in your password, AFAIK.
Might want to look into this more. It could be a driver issue, or you could be having power problems, or your PSU could be failing. (Sometimes the +5Vsb which powers the RAM during Sleep Mode, will degrade or fail, thus causing problems with sleep mode, and booting.)
If you've got money to throw at the problem, could try a new fresh PSU, and see if the problem goes away.
Another, more reasoned approach, would be to investigate the software environment first, like doing a "Pwrconfig -showwake" or something like that. (Web-search it.) There's a way to show Sleep triggers and wake timers that apps and drivers have set.
Edit: If you DO decide to throw money at the problem, and try another PSU, check out Hot Deals for a $15 off $60 online purchase coupon at Staples that expires the 24th of April, 2020. They still have a few PSUs showing on their site. Most are sold out. Or just check Newegg / Amazon, I guess.