hi , it sounds like part of your wiring loom has been trapped possibly under the side of the tank , and causing a short to earth .
worth having the tank up and check thru loom from the headstock backwards towards the battery ,also the usual things like sidestand switch and starter connections , and not forgetting the " brown " connector behind the coolant overflow tank .