You treated the disease & not the illness.
You have to find why the PTO switch is going bad .
And you bypassed the wrong wires
the fuel solenoid is wired to the L or A terminal on the key switch
All of the PTO wires are ground wires apart from the cranking circuit.
If you sent power to the solenoid then there is a better than average chance you hae also sent power to the magneto & killed them.