You, or a shop, need to troubleshoot the problem with a YDIS connector from Yamaha. A stationary test should tell you if you have a bad coil and most other problems should be logged in the ECM and can be read with the YDIS and a laptop.
Modern electronic fuel injected 4 strokes can't be tested...