Just an idea!
In what direction is the current flowing?
Is it flowing to the drive from the controller or from the drive to the motor?
The motor earth connection could be the earth for the whole control
because of a bad earthing connection back in the control panel.