It's not unheard of for a stator to fail intermittently, so you might run through the check procedure for that. Though in my experience, an electrical fault is a very abrupt fault while a fuel/air problem is a little softer, if that makes any sense. It's a seat-of-the-pants feel thing.

This shall pass, be still and know.
2006 XT225, UNI filter, ProTaper bars, MSR handguards, SS front brake line, Shinko 241's.