Hello. I had the absolutely same problem today. No idea what’s causing it.
I was able to fix that by deleting “Binary, Saved, and Intermediate” folders and then “generate visual studio project files”
Hope that helps!
EDIT: Do a regular backup using UE5. There are plenty of errors that can hard-crash your project