It sounds like you're experiencing unexpected restarts while your computer is supposed to be in sleep mode. Here are some troubleshooting steps you can consider:
- Check Event Viewer: Look for any relevant logs in the Event Viewer that might indicate what is causing the restart. Specifically, check for Event ID 41, which indicates that the system has rebooted without cleanly shutting down first. If you see Event ID 46, it may suggest a crash dump initialization failure, which could be related to your pagefile configuration.
- Disable Overclocking: If your system is overclocked, consider disabling this feature to see if it stabilizes the system.
- Memory Check: Run a memory diagnostic tool to ensure your RAM is functioning correctly. Sometimes, faulty memory can lead to unexpected behavior.
- Power Supply Check: Ensure that your power supply is adequate for your system's needs. An insufficient power supply can cause restarts.
- Overheating: Monitor the internal temperatures of your components to ensure they are not overheating, which can cause the system to restart.
- Automatic Server Recovery (ASR): If your system is a physical machine, check if ASR software is enabled, as it might restart the machine if it becomes unresponsive.
- Hyper-V Heartbeat Feature: If you are running in a Hyper-V environment, ensure that the heartbeat feature is configured correctly, as it can restart VMs that appear unresponsive.
- Check for Suspicious Events: Look for any suspicious events in the Application and System logs that occurred before the shutdown time, which might give clues about the issue.
- Clean Boot: Since you are already conducting a clean reboot, continue with that to identify if any third-party applications are causing the issue.
If the problem persists after these checks, consider restoring your system to a previous state or reinstalling Windows as a last resort.
References: