How I fixed it :
- Removed my sources entirely to make it a blueprint project.
- Opened the project
- Created a new class to make it C++ again, then closed the editor.
- Right-clicked the .project file and generated the visual project.
Now, I can add whatever I want back. If I build the project and use it, when it crashes, I have the history.