Run the Power troubleshooter. Go to Update & Security > Troubleshoot > Additional troubleshooters. Select the Power option and click on the Run the troubleshooter button.
Make sure you have also set Sleep settings to Never.
System > Power & sleep.> Never