cubicspline Error in xy.coords(x, y) : 'x' and 'y' lengths differ

If you provide a reprex. See the FAQ, an answer is more likely since no search will need be made for bs() and Auto.