Check out this recent thread:
Jetmoto wiring diagram
Look especially for the "no spark" link.
I really doubt it is the CDI. The CDI is mounted way away from the engine in a moving stream of air when your'e riding and doesn't get hot at all unless you stop and sit for a while. And then it still doen't get all that hot. In any case you could test this with a hair dryer to see if it really quits when warm.
Ditto this test on the ignition coil.
The stator really does get hot with the engine. The stator operation can be measured completely with a voltmeter without having to take anything apart. Of course you will need to take your measurements while it is malfunctioning. If the kill switch wiring checks out OK and the CDI and Coil don't quit working with the hair dryer then report back and we'll test the stator out (get a voltmeter ready).