User code is wrong...
Creating NativeList with initial capacity, but length of NativeList by default is 0. User needs to set Length before using it...
newVertices = new NativeList<Vector3>(data.vertexCount, Allocator.Persistent);
newVertices.Length = data.vertexCount;