Are yes you can not use that type of cable and the Ground wire will output lots of EMF wired like that, you need a 4 wire Shielded cable I'm surprised that you ever had it running wired like that
The Cable you need from the VFD to the Spindle needs to be like this CF6015-04 and connect the Ground to the spindle 4th Pin in side the spindle , the cable wires can not be unshielded like you have it wired the insolation must go inside the plug
So with a new cable don't take the insolation off the wires like that
You get this cable from IGUS or other suppliers
Here are some snips of how the cable has to be used and prepared for connection