I had a similar problem where when I changed gears all warning lights would start flashing and the bike would die, this was on an mc21
Battery voltage was too low for pgm to function correctly(found this out after spending a lot of time pulling wires looking for a short)