The issue:
When using my system for extended periods (a few hours long), logging out starts taking a long time. The same goes for shutdown, restart, etc. I just click the button to log out, shut down, etc, and the system just does nothing for quite a bit and then just suddenly does what I wanted to do earlier after some time (usually it's around a minute of waiting for it after using the computer for a few hours). If I log out right afte rebooting or logging in, no issues. It only comes up after using the pc for some time. I have tried googling and searching here as well as other platforms, but never found anything to solve it. Likely a problem in the process is with Debian logging me out of my desktop given how it happens. Any clue about what I should be looking at to troubleshoot it?
As an update, looking at my boot logs after rebooting, there is a watchdog did not stop thing and some firmware errors, but if they don't seem like they would be relevant to this issue given they seem to be quite late in the process and presumably after logging out as that is the case. Figured I would mention this anyway.
Specs:
-i5-9600KF
-RTX 2070 Super
-16GB HyperX Fury 2666MHz RAM
-Intel i660p NVMe SSD (this is the drive I have my Debian on)
-2 other drives, but neither of these should affect my Debian installation in any manner
Debian:
-UEFI boot
-Installed rather minimally with no desktop environment
-Installed Budgie separately as a desktop
-With proprietary NVIDIA drivers and backport kernel
Here is my shutdown log:
https://i.imgur.com/IGa66Y0.png
https://i.imgur.com/4g2NIdM.png
https://i.imgur.com/3B6VTRN.png
https://i.imgur.com/ATHAICd.png
https://i.imgur.com/31x4iXj.png
https://i.imgur.com/l7xeIs2.png