Sounds like a flaky opto somewhere...first thought would also be the ball trough.
Is it the original ball trough boards. If so they are pretty notorious for failing du to the vibration of the balls in the trough ( I think Williams used a new board for their widebodys at the time and they failed often enough).
There is a trick to minimize the vibration on the boards by lining the screw holes with a rubber ring acting a shock....but personally I would just buy new boards from Great Lakes Modular:
https://nestlepurelifedirect.com/pages/signin.aspx
Look for the williams widebody trough boards set.
If it's not the trough boards it likely is the optos on the underground subway...you have one going on and off which could be a bad opto solder or it just slowly dying. Harder to troubleshoot so just keep cheking those underground optos when it fails next.
But I would start with the ball trough.