Motorcycle Questions? Ask a Mechanic.
It sounds like you have a short circuit somewhere in the system causing the main breaker to trip.
Your bike uses an auto-resetting breaker to protect the main circuits and it will trip off when a short circuit is present and reset a few seconds after the short is removed. If this is the case you should hear a click somewhere below the seat. A bad ignition relay, or wire feeding or leaving it, could cause the short circuit.
If you do hear that click when things shutoff and then, shortly after turning the ignition switch off, another click then you'll need to track down that short circuit and repair it to solve the issue.
I hope this helps. Please let me know if I can be of further assistance. Also, please leave a positive rating for my service today. Thanks, P.J.
Here is the best schematic I can come up with for your bike.