check every wire on your harness mainly by the ones that are by the head ,pipe,etc stuff that gets hot and make sure theres no bare or brittle wires,if your postive on no bad or shorting out wiring and postive its not the carb , buy a used stator , you could always resell it if that doesnt fix it. what about the cdi getting warm and cutting out? my polaris did the same thing would run find for 10 to 15 min and die ,let it sit for a minute and it would fire right up,took me forever to figure it out I replaced the fuel line with a thick one and never had the problem again ,I didnt see any thing wrong with it,but it was a thin one and when the engine got hot fuel would evaporate in the line, basically run fine until the bowl was dry but would kinda stay running if I throttled it alot because of the suction pulling enough fuel thru