Here are some tips for ensuring that your computer does not automatically sleep:
-  Adjust your power settings 
 Change your power settings to ensure that the computer does not automatically go to sleep after a certain period of inactivity.
-  Monitor your screen’s brightness 
 Make sure to adjust your screen’s brightness according to your current activity so that your computer does not enter Sleep mode.
-  Reduce background activity
 Disable any unnecessary processes or applications running in the background to save power.
-  Set your mouse and keyboard to active
 Enable the active setting for your mouse and keyboard to ensure that the computer does not enter Sleep mode after a certain period of inactivity.

