I have had the same trouble with both the cdi, and the stator. These componants will SOMETIMES give the exact symptoms you are showing. The next time it stalls out on you check for spark right away. If this is the problem, look for the service manual, and it will have a section containing the resistance values for testing these parts. You will have to test both when cold, and as soon as it stalls to find which part is at fault.