Hello there,
Sometimes your computer will not wake up from sleep mode simply because your keyboard or mouse has been prevented from doing so. To allow your keyboard and mouse to wake up your PC
Go to Keyboards > your keyboard device.
Click Power Management and check the box before Allow this device to wake the computer and then click OK.
Repeat this fix on your mouse device(usually under the category of mice and other pointing devices).
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–