Identical symptoms (including having to disconnect the battery to recover) to when I had a fault in the grounding block above the headlight.
Remove the screen, dash, and fairing above the headlight (leave the headlight on the bike). The grounding block is on the right hand side, yellow I think. Open it up, and inspect for burning etc. I fixed mine by cutting off the stock connector, crimping a load of eyelets to the wires, and running a bolt through it to connect them all, plus an additional wire from these eyelets to a convenient bolt on the frame to 'reinforce' the ground there.
Also check the large connector block in the left hand front fairing (underneath the left pocket - remove the fairing and it should be 'clipped' into the inside of the fairing) - this has a small ground line that takes all the ground current from the front of the bike.
There's another grounding block underneath the rear of the upper fuel tank. This was subject to to a recall I believe on earlier bikes? Similar 'type' to the yellow one at the front, but pink/brown/purple colour. The recall replaced this part with a similar one with an additional ground link that is attached to a nearby bolt on the frame.
Good luck
Remove the screen, dash, and fairing above the headlight (leave the headlight on the bike). The grounding block is on the right hand side, yellow I think. Open it up, and inspect for burning etc. I fixed mine by cutting off the stock connector, crimping a load of eyelets to the wires, and running a bolt through it to connect them all, plus an additional wire from these eyelets to a convenient bolt on the frame to 'reinforce' the ground there.
Also check the large connector block in the left hand front fairing (underneath the left pocket - remove the fairing and it should be 'clipped' into the inside of the fairing) - this has a small ground line that takes all the ground current from the front of the bike.
There's another grounding block underneath the rear of the upper fuel tank. This was subject to to a recall I believe on earlier bikes? Similar 'type' to the yellow one at the front, but pink/brown/purple colour. The recall replaced this part with a similar one with an additional ground link that is attached to a nearby bolt on the frame.
Good luck