Does your Windows PC get locked automatically too often? If that’s the case, then it’s probably because some setting in the computer is triggering the lock screen to appear, even when you leave it ...
If you do not like the default lock screen settings, you can change them using the Windows Settings panel. Although the options are limited, you can personalize them according to your requirements.