When I had that problem it turned out to be a problem with the earth wire, so double check that you've got the earth wire from the spindle body connected to the VFD and that point connected to earth. Also earth the machine frame to the same point.