Windows keep locking after 15 mins of gameplay after the update.... my laptop is plugged in and temps are also normal!

This is the screen i am getting...

https://preview.redd.it/v6uy9v5yrle51.jpg?width=686&format=pjpg&auto=webp&s=e262b65af906c6e6a5ff43df09eebeebb450d185

I have already followed the steps mentioned in this link- https://answers.microsoft.com/en-us/windows/forum/all/the-screen-says-locking-and-it-goes-into-sleep/cf8de14e-2178-4b7d-8159-a0b08552e2ce

I have done a reset but it did not did a complete reset because previously I had internet explorer instead of Microsoft edge.