disconnect cable from Fanuc drive and measure insulation of the motor and cable, it must be above 1 MOhm
try to shake cable when check, simulating vibration during running )
if OK check transistors, though I doubt on it, I guess it connected with wiring and vibration
also check power terminals in motor