Here is a playground where a sphere is created. Then VertexData for a box is created and applied to the source mesh. After this the index data for the submeshes are incorrect and clicking the box gives an error in the console.
Looking into the issue the submesh has the wrong indexStart and indexCount.
It works fine to do the same thing when instances are not involved.