Could be an intermittent PTO switch that works most of the time, and then doesn’t some of the time. Remove and replace PTO switch. Also, really visually check the wiring, all the way up to where it enters the PTO clutch, looking for damage to wires, connections.