CreateMeshFromWholeScene.cs line:188 of the script
' var b = bounds[index]; '
Must be changed to
' var b = new float3x2(new float3(float.PositiveInfinity), new float3(float.NegativeInfinity)); '
Because the ' bounds ' variable must be initialized to PositiveInfinity and NegativeInfinity.
Otherwise, its initial size cannot be guaranteed.