Crash after calling USceneCaptureComponent2D Capture

hi,
We are having a random crash after calling Capture() from a USceneCaptureComponent2D component.
Small code sample below.

for(auto a : AllActors)
{
	UPrimitiveComponent* primComp =  a->GetNodeMesh(); //Returns a UStaticMeshComponent
	if (primComp) 
	{
		primComp->SetCachedMaxDrawDistance(0.0f);
		primComp->LDMaxDrawDistance = 0.0f; 
	}
}
CaptureComponent2D->CaptureScene();

Screenshot of the callstack