EndeavourOS freezes/random flashing of screen when logging out

Hello. I use EndeavourOS with an NVIDIA GPU and KDE and the proprietary drivers installed by default. I use SDDM as my display manager, and every time I log out, the screen either doesn’t display anything or flashes. There is no problem if I simply restart but this is a pain. How do I fix this?

/bump

Bumping is not a thing in this forum… Rather provide more system info to get help.

I tried looking at my journalctl, it seemed that EndeavourOS failed to detect my GPU, but this issue has not persisted

Could you give us more info on your hardware and in particular if it is a desktop or laptop and if you have a dedicated GPU in combination with integrated graphics on your CPU?