There you'll see two options: Turn off the display and Put the computer to sleep. Step 2: Then you will come to an interface where you can choose the sleep and display settings that you want your computer to use. You will see the result appears under Power Plan and click it.
Step 1: Open Control Panel and enter Change when the computer sleeps in the search bar in Control Panel. So the first thing that you should do is to check the power plan settings and edit it if necessary. If your power plan setting is set to put the computer to sleep in a very short time, maybe you will face the issue that computer goes into sleep mode randomly. Method 1: Check Power Plan Settings via Control Panel
Follow the below troubleshooting methods to fix this problem. It is very annoying as you have to constantly wake up your computer so that you can use it again. What to do if Windows 10 keeps going into sleep mode? Some users reported that they encountered a tricky issue that their Windows 10 computer goes to sleep after 1 minute or 2 minutes randomly. How to Stop Windows 10 from Going into Sleep Mode Randomly