Just had a problem like, only when I was in gear, after I changed the clutch lever. Reseated the electrical connector, all better. kickstand switch will do the same thing, same circuit.
I believe that you can bridge two of the wires on the clutch connector and eliminate the clutch switch and the kickstand switch, that will eliminate both of them quickly.
Beyond that, it could be a thousand little things!