Procedurally generated mesh not Rendering all triangles

I followed a tutorial for a procedural mesh generator, and it works perfectly. However, when I increase the grid size to over 100, the mesh doesn’t fully generate, instead, it stops part way through the generation.

When I select the meshes gameobject, it gives a bounding box of what the full size would be. Any ideas? Surely there isn’t a limit. Is there?

I followed this tutorial: Procedural Mesh Tutorial

I inadvertently discovered that there is a mesh vertex limit of 65535 in unity. Here is a thread on the topic if anyone is interested.

65535 vertices limit