Mesh along spline deforming incorrectly

I had a similar problem, the mesh had Nanite enabled. Started working fine when I disabled it.