Frist off, you need to do some troubleshooting before you start 'throwing' parts at a problem, especially an intermittent electrical problem .
This is a not an uncommon occurance with these bikes .
The 'fixes' for this problem are varied, they range from faulty ignition switches, faulty 'KILL' switch, bad ignition trigger components, loose wires, etc .
You may fix the problem without replacing the parts and never really know what caused the problem .
That was my case about 16 years ago, in my case I think it was a loose wire in a connector, again never positivly identified the problem, but it hasn't happened in 16 years .
I would start with removing the fuel tank and go over all of the connectors for security and that the wires cannot be pulled out of the connector, check for corrosion as well, if that is a problem in your location on planet earth .
When the engine cuts out, does the tachometer go to '0' ??
If you are in dark or night conditions, does the entire electrical system fail also
