Had the same problem on and off for years with my magneto and it was worse on hot days. Would run on only one cylinder. Then both would start crapping out. Chipped away at all the black epoxy to get down to the connections and solder joints. Resoldered everything and cleaned all terminal connections and it started working again like new!