I would check the ground connection at the battery for tightness, then the positive connection.
Wiggle the main fuse, make sure the contacts are tight.
Do you have issues with the dash lights?
If you do I would consider the ignition switch, not a bad idea to unplug/plug that connection to the main wiring loom.
Do you have a kickstand switch?
'02 KTM 640 Adventure-lowered
"On the road there are no special cases."
Cormack McCarthy-The Crossing
The faster it goes the faster it breaks.
And high performance=high maintenance.