Check more than the opto. Check the IDC cables connecting to the opto boards.
On my STNG; vibration of flippers and/or trough coils was causing intermittent optos.
This could be seen by wiggling the trough board wires going into connectors at the trough boards.. this would cause switch transitions in the test.