After changing something in c++ Unreal crashes

So every time I change something in cpp files and then recomplie in Unreal it crashes but after restarting it compiles just fine. Any Ideas why it could happen?