To prevent Windows 11 or 10 from locking itself, first disable Dynamic Lock and the "On Resume, Display Logon Screen" option in screensaver ... right-click any blank space, and then click ...
Results that may be inaccessible to you are currently showing.