Thanks for all the info on this problem. I was able to fix my flashing headlights.
My initial problem was intermittent headlights that seemed to be affected by the hi/lo dimmer switch. I got busy on Amazon and ordered a switch. Well, I ordered the wrong switch and got the main headlight...