My first thought is that electrical noise from the VFD is triggering false stepper pulses. Earthing and shielding should be checked.