This solution solved the problem in the majority of cases. One workaround is to replace the function of sleep with hibernate functionality so whenever you close the lid or press the power button, the computer hibernates instead of sleeping. It seems the case for many users that their computer couldn’t function the operation of sleep properly.