Ignition would not have anything to do with that, It is likely the kickstand safety switch or possibly the associated relay box. The bike thinks the side stand is down and when you put it in gear it cuts the bike off. Unless you are trying to but the bike in gear with the kickstand down then everything is working normally.
A forum community dedicated to Yamaha R6 motorcycle owners and enthusiasts. Come join the discussion about performance, modifications, troubleshooting, maintenance, and more!