@hellomiakoda I'm not sure how much i can help with this but just a thought - assuming it is a laptop, do you have the option (eg in bios/uefi) to use an integrated gpu instead of the nvidia?
If you can switch to an igpu it won't solve your problem as such, but might at least make it easier to concentrate on the x11/wayland problem first and then tackle nvidia once you've got a usable desktop again...