The fix is to display an error and not crash.
The setup is invalid - we don't support the XYZ curves using different modes (ie they must all be curves, or all floats, not a mixture)
We handle this for all other modules that use XYZ curves, but had missed some error handling here.
So you should update your code to use the same mode for all 3 orbital velocity curves.