if you are still having the issue try getting the codes off the ecu to see what it throws at you. I had a similar issue with my bike. At first it happened rarely then started to do it more and more. turned out the main crimp went bad.
if the bike is throwing a bunch of codes like mine was check the wiring diagram to see if they are all on the same ground if so its mostly like the same issue I had.