yes, I think you have a short somewhere or a bad connection.
good news it's intermittent, bad news it's intermittent
as I said, check your wiring. it's about the only way you'll find it because it's intermittent.
check your ground, right rear engine case by the oil fill window.
remove and reconnect the connectors for the handle bar controls.
Oh, and those darned safeties, clutch and kickstand, they can be bypassed with a paperclip. green connector under seat, connectors on clutch switch.