This happened to my bike. I had a bad main wire coming from my fuse box. Used a wire from a used box, replaced it. No more electrical problems. Move the wire around when testing. It´s a hit or miss, took me 2 months of searching until one day I had no electricity coming from the main wire.