I know it's not the most ideal way to test, but ammeter in the earth wires to see if there's any measureable leakage?

Should at least be able to isolate if it's the VFD, or motor causing problems.