Cause : While doing upgrade, some permission on "com.apple.PowerManagement.plist" gets corrupted and macbook/macmini starts behaving abnormally.
Solution : Here we have two solutions.
1) You can set "SleepDisable" boolean value to "NO" by below mentioned command.
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist SystemPowerSettings -dict SleepDisabled -bool NO
If you want to undo this settings, then use this command.sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist SystemPowerSettings -dict SleepDisabled -bool YES
2) Delete "com.apple.PowerManagement.plist".> Open Terminal
> Sudo rm -rf /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist
> Reboot your mac.
Thankyou