here is a similar post on the motor failure in the headlight... i think your motor is still good but you may have a nick or broken tooth on the worm drive or the gear...
http://www.xoutpost.com/bmw-sav-foru...ht-motors.html
the AHL module is behind the glove compartment - I could not pin point it, if it is actually behind the compartment or next to the LCM on the passenger side A-pillar... in either case, if we need to dig into the AHL module, the glove compartment will need to come off in order to gain access to the modules...
Can you look up the instructions for the glove compartment removal?
the AHL module part # 61356934837
should you find the AHL on your own, while i am still researching the issue, the module has only one 18-pin plug. to make a swap, you will need to remove the pin 2 and insert it into slot for pin 3, and remove pin 3 and insert it into the slot for pin 2.
Also, you will need to remove the pin 17 and insert it into slot for pin 18 and remove pin 18 and insert it into slot for pin 17. thus, the two pairs can be switched... this is rough info, you probably will ned details on how to remove the pins, how to take the plug apart...
I still think, the problem is inside the headlight, with the motor or the gearing...
i am still reasearching this...