Based on diagnosis, replace the faulty unit.
The "detect error" disappeared because the signal path was restored. fanuc 414 servo alarm z axis detect error repack
If possible, manually rotate the Z-axis ballscrew (with the brake released and the head supported) to feel for any binding or "rough spots". Diagnose a Fanuc High Current Alarm in 10-Steps Based on diagnosis, replace the faulty unit