Is engine crash while compiling c++ code a common thing ?

Could it be that you are hot reloading and relaunching the editor? If you do that make sure to just compile from VS again, if not you will load the hot reload dlls that are not valid anymore.