Engine broke all links between BP and C++

I’m writing a plugin.
I’ve created about two dozen base classes, UStructs and an Interface in C++, followed by their respective BP extensions. Everything worked fine. Until today, when I started up the editor and found that each and every BP that I created from a C++ class was… well, I guess the right word would be “un-parented”, and none of the UEnums, UStructs or UObjects which I had created could be found in the editor, despite the files being exactly where I left off yesterday. Everything is broken, despite the fact that the only changes I made over the last couple of days were in Blueprint. There were zero problems the last time I closed the editor.

Is there any way to somehow restore the last 20h of work?
And is there any way to prevent this from happening again? How did it happen in the first place? Is this a known problem?

Best regards.

Hey there Datarecovery09,

could you send any logs you may have my way? Also, would you happen to be using any type of source control?