Crash on load project (corrupted uproject?)

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.