If you're having sporadic failures, I would seriously consider looking at the stator wires directly behind the flywheel and check the flywheel for separation of the inner back side. This is exactly what happened to mine but I ended up with complete failure. I'm not sure that a bad capacitor would be related to a spark problem.