Prior to buying the new stator, did you test AC voltage output at the three yellow wires? The stator, good or bad, is not something that has much of an effect
FWIW, dielectric grease is your friend. Also, I would suspect you have corroded connectors or bad grounds elsewhere on the bike. Deal with those while you