Hi,
I am right now on vacation, for two weeks. I have some guesses about the issue, but without access to a proper development environment, I can't test them. I hope the guesses will be helpful:
The issue seems to be caused by the spline's internal data not being ready, either because the code was executed at the first frame, before the spline was initialized (more about this here: https://curvyeditor.com/documentation/apigeneral#before_using_the_api), or maybe some code modifies the spline and the controller runs before the spline updates. Try calling the spline Refresh() method before the update of the controller speed.
I am right now on vacation, for two weeks. I have some guesses about the issue, but without access to a proper development environment, I can't test them. I hope the guesses will be helpful:
The issue seems to be caused by the spline's internal data not being ready, either because the code was executed at the first frame, before the spline was initialized (more about this here: https://curvyeditor.com/documentation/apigeneral#before_using_the_api), or maybe some code modifies the spline and the controller runs before the spline updates. Try calling the spline Refresh() method before the update of the controller speed.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.