This is not a wiring issue. First, make sure your headlights are adjusted as far as their angle. There are adjustment knobs on the headlights.
However, they likely are you you are suffering from the plastic headlight issue. Euro cars got glass, and they don't wear-out like our do. The best solution is to buy a set of glass ones. There are lots of varying quality. Just search the net.
2002 540i M-Sport