The Specify the Unattended Sleep Timeout (Plugged In) machine setting should be configured correctly.
Specify the period of inactivity before Windows transitions to sleep automatically when a user is not present at the computer. If you enable this policy setting, you must provide a value, in seconds, indicating how much idle time should elapse before Windows automatically transitions to sleep whe ...