Same issue in UE5 preview too. Really hoping all my work isn’t lost. I am using version control, but it seems to have somehow screwed that up too.
$ git stash
fatal: C:\Program Files\Git\mingw64/libexec/git-core\git-stash cannot be used without a working tree.