another thing that can cause this, is a CDI starting to go bad
and I have noticed that a LOT of the atv's at my hunting camp, that run ethanol fuel will do this, and all the one's that run NON Ethanol fuel do NOT, even same models and yr atv's
so, IMO< ethanol fuel can cause this some times too!
and yes a air leak in system can cause things to back fire too
timing issue's too