If points are duplicated, the spline fails to fit as it cannot estimate distance between identical points. - Filter out duplicates - Check if there is also an issue with very close points.