The flywheel has a ton of force on it. It helps provide the torque on a machine. When the engine revs, it has force against it as the crank accelerates. When the engine slows down, the flywheel want's to keep moving. Inertia.
Bad wire's are your enemy. I'd go as far as reviewing the entire machine's wiring. All connectors. Confirm they are clean and have dielectric grease on them (water prevention). then secure them. A loose wiggly wire will wiggle until it breaks internally. Those suck.
Fixed an old honda civic that had wiggly wire's going to the distributor. After the wire got to the right spot, the car wouldn't start. If you wiggled them while it was running, it'd cut out and die. I used trailer splicers and kept connecting wires in parallel with the old wires until it ran. Faster than actual trouble shooting. It was so pathetic looking. About 8 wires all doubled up lol. That car got stolen.
I just wanna go fast. If your not first, your last!!
Reproducing the Tecate CDI. Contact me if you need one. I'm most accessible on FaceBook. You can find me on the 1984-1987 Kawasaki Tecate KXT250 Group.