I had a similar problem with all of my Twilight Zone optos working intermittently. The problem turned out to be a failed 100 uF capacitor on the under-playfield opto board that had leaked electrolyte and eaten up a trace on the board. I replaced the capacitor, jumped the bad traces, and now I'm firing on all cylinders.
I've attached the drawing of the Demolition Man opto board from the manual. You should use a multimeter set to DC volts and measure the voltage across capacitor C1. I suspect you'll find that the reading is 12 V while the optos are working and 0 while the optos are not working. If you don't have 12 V there, that's your problem.
You should inspect the area under and around capacitor C1. If you see any signs of leaking or corrosion, that's bad! If you wiggle the capacitor and it doesn't feel secure, one of the legs may be corroded.
You could also use a mutlimeter to measure the capacitance of capacitor C1. It should read somewhere in the neighborhood of 100 uF.