Change the System unattended sleep timeout to a longer time.
You may not have to try them all just work your way down until you find the one that works for you. We’ve put together five solutions below for you to fix the problem. You can fix it easily with one of the solutions below.
This is one of the common issues in Windows 10 and Windows 7. Computer keeps going to sleep? Don’t worry.