I have the same problem and I think it is about this code in \UE_5.1\Engine\Source\Runtime\Engine\Private\StaticMesh.cpp\BuildFromMeshDescriptions (BuildFromStaticMeshDescriptions uses that function to operate)
#if WITH_EDITOR
else
{
Build(true);
}
for (int32 LODIndex = 0; LODIndex < NewNumLODs; LODIndex++)
{
FStaticMeshLODResources& LODResources = GetRenderData()->LODResources[LODIndex];
for (int32 SectionIndex = 0; SectionIndex < LODResources.Sections.Num(); SectionIndex++)
{
const FStaticMeshSection& StaticMeshSection = LODResources.Sections[SectionIndex];
FMeshSectionInfo SectionInfo;
SectionInfo.MaterialIndex = StaticMeshSection.MaterialIndex;
SectionInfo.bEnableCollision = StaticMeshSection.bEnableCollision;
SectionInfo.bCastShadow = StaticMeshSection.bCastShadow;
GetSectionInfoMap().Set(LODIndex, SectionIndex, SectionInfo);
}
}
#endif