Crash on load project (corrupted uproject?)

I have been working on a project for about a week now. It’s a c++ project created from the empty code template. Today, as I compiled my code inside the editor, everything froze for about a minute. When it unfroze, the compile button had vanished from the editor, so I restarted. However, when the project loaded to about 70%, I get a message that “The game module ‘FPSProject’ could not be loaded. There may be an operating system error or the module may not be properly set up.”

Things I’ve tried:

Restarting computer

Deleting all files except for uproject, content, sources, and config

Making new project and copying content, sources, and config over

Making a new project and creating new c++ files within Unreal, then copying the text of the old files in (not copying content and config at all)

None of these things made any difference, even if I make a new project as soon as I try to compile it the button goes away and when I restart I get the same error.

Delete Binaries.
Generate solution files from uproject.
Compile in visual studio.
Check if there are errors.

You can right-click .uproject and there should be Generate Solution menu item.

I can’t regenerate the solution because Unreal won’t open the uproject. When I open the sln in visual studio, it doesn’t show any files and says the project needs to be refreshed.

Did this, the sln builds without errors but I still get the same crash when I try to open the uproject