Disconnect the Black/Yellow wire (kill circuit) from the powerpack or the ignition switch, whichever is easist to get to. NOTE that with this wire disconnected, it will be impossible to shut the engine down via the ignition switch.
Now, if your present problem ceases to be... in all probability, the ignition switch has an intermittent short, in which case, replace it.