We had an absolute encoder on an arm that would sometimes randomly read 180 degrees from where it actually is, causing the arm to ram down into the robot and stall the motor in an attempt to dig into the ground.
Our programmer solved it in software by ignoring the encoder value if it goes crazy.
