crash when trying to compile BP

I created a component (с++) based on ProceduralMeshComponent. It worked great yesterday, but today I get a crash when I compile the BP to which this component is being used.
But the plugin works, I only get a crash when trying to compile the changes.

Crash log: **Creating UObjects while Collecting Garbage is not allowed! **
Any ideas why this might be happening?

I think I found the reason: if in BeginDestroy () call the function to delete a dynamic mesh (function from UProceduralMeshComponent), then crash This is strange, BeginDestroy () must be called before the garbage collector