Sometimes the desktop and the taskbar die when the screen turns off due to inactivity

Apologies in advance for my poor use of the language. I’m using Bazzite KDE. I have configured it to turn the screen off after five minutes of inactivity. The system does never suspend.

Sometimes when I “wake” my system up, I find that both the desktop and the taskbar are just gone. Programs and the start menu still work, and I can simply open the terminal and run systemctl --user restart plasma-plasmashell to make everything go back to normal.

Still, I would prefer if this issue never happened in the first place. Feel free to ask questions about my systems or for logs (do tell me where to get them tho) if it will help you figure this out.