I'm thinking you may have a short developing in the key/ignition switch. Mine was running fine, then dead. Depending on the angle of the handle bars, it would run or not run. As the bars turned, it was connecting and disconnecting the faulty wire.
I replaced the unit and then relocated it to...