There can be several causes but to start with, you can try following. Please try these options one by one and check after each option.
- Troubleshoot Power
Type troubleshoot in Cortana Search > Click Troubleshoot > Scroll down > Click Power > Run the troubleshooter > Follow on-screen direction.
- Restore Default for Power Settings
Windows Key+I > System > Power & sleep > Click Additional power settings to open Power options > Click Change Plan Settings > Click Restore default settings for this plan
- Disable Fast Startup
Reach to Power options as in previous step > Click Choose what the power buttons do > Click Change settings that are currently unavailable > Scroll down to Shutdown settings and uncheck Turn on fast startup > Click Save changes
- Uninstall / Install Battery Driver (Only for laptops)
Shut down your computer > Detach power chord > Remove battery (if fixed no need to remove) > Attach power chord > Reboot your computer
Windows Key+X > Device Manager > Expand Batteries > Right-click Microsoft ACPI-Compliant System > Uninstall > Shutdown the computer > Remove the power chord > Attach your battery > Attach your power chord > Reboot the computer to automatically install the driver
- Run Built-in & Guided Walk through Windows Update troubleshooter
Built-in : Windows Key+X > Click Settings > Click Update & security > Click Troubleshoot > Click Windows Update > Click Run the Troubleshooter
Guided Walk though - https://support.microsoft.com/en-us/help/10164/...
- I would recommend that you perform a Windows 10 repair upgrade. Repair upgrade fixes all Windows errors and retains all files, applications and settings. (You will not lose any data while backup is a good idea) Below is a good guide to perform repair upgrade
https://www.tenforums.com/tutorials/16397-repai...
Disclaimer - This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.