I fought a grounding / electrical issue for about 6 months on my build back in 2010. Make sure you have a solid connection at the regulator frame mount, coil mount, head stay mount plates - engine to frame.
I wanted to make sure I had a good ground on my build and ran a 8-10 gauge wire bolted to the frame to one of the head bolts.