Hello there,
Here are a few things you could check.
Go to Settings > System> Power and Sleep > Advanced Power Settings > Change Plan Settings > Restore Default Settings for this Plan.
Go back. Settings > System> Power and Sleep > Advanced Power Settings > Choose what closing the lid does. Then choose “Do Nothing” for every option. Now make sure that the screen stays on after every close and open cycle of the lid. If the screen is not turning back on, then there could be a driver or hardware fault.
Similar discussion here https://answers.microsoft.com/en-us/windows/forum/all/computer-very-slow-waking-up-from-sleep-mode/2b0bef85-6661-4d61-a0ab-4b05a4f50459
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–