check the front engine ground it will cause lots of problems if loose, then check the lights on the ignition module see if they flash correctly, check the timing, try replacing the gas it may be bad or may have plugged a jet, disable the kickstand safety, flip the center clutch safety diode / the safety's cause lots of intermittent problems
remove the gas cap when it stops running it may not be venting corretly