Windows 10 shuts down after being in sleep mode overnight
Please try running Power troubleshooter and check if it helps.
- Press Windows + X keys on the keyboard and select Control Panel.
- Type Troubleshooting in the search bar on the Control Panel.
- Click on View all on the left navigation pane. Click on Power.
- Click on Advanced on the power troubleshooter dialog box and click on Run as administrator (Enter the credentials if required).
- Click on Next and follow onscreen instruction complete the Power troubleshooter.
In addition, go to Control Panel-> Power Options-> Change plan settings-> Change advanced power settings -> Sleep -> Hibernate after -> here put both "never".
I assume you mean hibernation mode (so it did not "shut down" completely)
Goto System settings -> Hardware and Sound -> Energy option
There you can set after how many minutes the computer goes into hibernation mode and sleep mode. Change the time for hibernation.