Are you switching both neutral and live to the VFD?
If you are, change it so you're only switching the live. I've had this problem in the past, and now whenever wiring up a VFD, I just switch the live.

Some details can be found at HowTo: How to Use Inverter Drives with RDC Earth Leakage Protected Supplies