As you have selected to never sleep options this might be due to the faulty or outdated graphics card driver, especially if you have got a high-end graphics card installed. To fix the problem, you can try to update the graphics card driver.
You can also disable the screen saver and see if the problem persists.Try this on your Windows 10 or 11 PC
-Press Win+R on your keyboard to bring up the Start menu.
-Type lock screen settings in the search bar and select Lock screen settings.
-Click Screen saver settings at the bottom of the window.
-Set Screen saver to None.
Restart the PC after all these steps and see if they are helpful.
--If the reply is helpful, please Upvote and Accept it as an answer--