Changing Parent Class of a C++ Class Crashes Editor

I tried copying your code into a new USceneComponent class and then converted the class to a UStaticMeshComponent class which compiled without a crash. If you switch your class back to USceneComponent are you able to open the project? If so can you create a new SceneComponent class and change that one to a StaticMeshComponent class? It may also help if you can provide the project where the crash is occurring.