I am not very experienced with Linux so I apologize if the description of my problem is in some way lacking.
So, for some unknown reason, my Kubuntu installation sometimes breaks down and does not want to boot into GUI. Everything goes fine, both BIOS and GNU grub works, and then after selecting Kubuntu, it gets stuck at the motherboard manufacturer logo. Because it does not go any further, no matter how long I wait (30 min+, whole boot process normally takes around 1min on my computer), I decided to switch to CLI mode, in order to see if it will work. I log in with no problem, everything seems to work just fine, so I try to start GUI manually with startx, but then it displays a message taking up the whole screen stating that it encountered a problem (no more details about the problem, just error message) and I need to log off. I click the log-off button in the message, and then it takes me back to CLI, but it gets broken(lines are offset, commands do not show up when I write them, only the results of commands being executed). It happened to me two times, at first, I thought that I screw something up while I was installing the driver to my graphics card. After that, I got into advanced boot options, and booted up different Kubuntu versions (different kernel version, 5.8 instead of 5.13). I decided that I would keep using this working version until I figure out what I screwed up with the previous one. Then, around a month later, the exact same problem happened to the second version. I did not tinker with this version in any way, I was using default drivers, did not install anything weird, or change any system files. Again, I got exactly the same results. I have no idea what is wrong, let alone how to fix it, so I ask for some ways to figure out what the problem is.
This is my hardware:
CPU: AMD Ryzen 3 3100 4-Core Processor
GPU: NVIDIA GeForce GTX 1650
SSD: Patriot P300 1TB
Memory: 16GB RAM
Software:
Kubuntu 21.4
Xorg: 1.20.11
Edit: I added pictures of error messages
First error message
this is what shows up after I click Log out
Edit 2:
link to my Xorg log file