ERROR_CURRENT_UNSTABLE during AXIS_STATE_CLOSED_LOOP_CONTROL

I can run odrv0.axis0.requested_state = AXIS_STATE_FULL_CALIBRATION_SEQUENCE fine with no errors

When I run odrv0.axis0.requested_state = AXIS_STATE_CLOSED_LOOP_CONTROL The motor spins super fast for half a second then stops… it gives me no resistance as it should, and then when I check the errors it gives me two axis: Error(s): motor: Error(s):
ERROR_CURRENT_UNSTABLE
ERROR_MOTOR_FAILED

I tried some of the fixes already suggested but nothing worked. What is wrong?

Is encoder.config.use_index set to true? this is often the cause of this problem.

For me the encoder.config.use_index is set to False
and I still have the same problem.