Hello there,
Have you try to completely disable the lockscreen option?
You might check to see if the Interactive logon: Machine inactivity limit security policy.
Access the System unattended sleep timeout setting, follow these steps:
In the search located in the Task Bar, search and open the Control Panel.
Select Hardware and Sound.
Select Power Options, then choose Change when the computer sleeps.
Click Change advanced power settings.
Click the “+” to expand the folder for Sleep.
Click the “+” next to Sleep after and Hibernation after.
Extend the time to whatever you want or enter 0 for Never on both settings to make sure they are disabled.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--