Sounds like pick up coil. Get's hot shuts down, cools off and fires back up.
CDI would normally just start running erratically, one cylinder, popping farting etc. Run fine for a period, Then nothing, no fire.


It's not speeding till you get pulled over.
https://www.youtube.com/watch?v=Bqa1s4jhkQ8