This is the problem I had and this is how I corrected it.
I looked all over the inter web and found all kinds of answers from igniters, to ballast, to bulbs, to sensors, with no clear answers.
Symptoms I had was the right headlight threw a scattered bean to the right and high, but very little...