I recommend going into your "mass" of wires in the headlight;carefully check all those wires & make sure you have good,clean & tight color to color connections;remove the tank & check the wires near the coils also...you may have some broken double-female connectors or possibly corroded frame to harness ground strap connections.