On older robots, replace the SIF module and/or the DSM module, but I think they are not used anymore on modern robots. (I am not sure, we only have old robots)
Very important ! Check the grounding on all cables and between the robot and controllercabinet.
It is a mayor cause of all sorts of faults.
Check not only the cables, but also the pins in the connectors if they are still locked and can't be pushed in.
Check if the pins and bushes still look good.
Take a good look at the coupling between the encoder and the motor, and check if it is not broken.
This one kept me once searching for more than a week....