It should not suddenly die, so you need more than a quick fix, most likely.
There usually is a large (30 amp) main fuse that feeds all of the power (except the starter motor).
It may be near the other fuses or it may be by itself near the battery. The other fuses are usually 10A or 20A,
thus you can distinguish them from the mail 30 amp fuse.
I'd turn off the ignition, find the mail fuse and replace it with the same amp fuse.
If it blows when you turn the igintion ON, you need to look for a short in the wiring.
If it does not blow, then you had better carry a spare fuse when you ride.
Scoot safely,