something similar happened to me lately (on linux mint): i've somehow lost xorg and cinnamon due to botched wine install or maybe uninstall. what worked for me: i was able to install them again without gui, reboot (this time getting gui back) then run timeshift (that worked somehow) to restore to yesterday's backup. note: you will be probably able to access your files in cli, and if in doubt back them up, then if all else fails you can spin up new install of your distro. it's most likely recoverable but it will take an evening in the worst case
since then i'm making full backups every month