Crash in 4.17.2 with instanced static meshes (Unknown RHI vertex element type 0)

Hello! I’m having the same problem. Found a workaround, just call the following functions right after the call to RegisterComponent:

NewComp->ReleasePerInstanceRenderData();
NewComp->InitPerInstanceRenderData();

It seems the InstanceRenderData is not created before RHI initialization in some cases, leading to vertex declaration referencing NULL vertex buffers.