short to GND can happen somewhere between the AFS module and the headlight motor. or even inside the motor.
I'd first check the 'wet' connections for water ingress, so where the connector meets the headlight.
if you are in the position to do so, check wiring. you can also disconnect the...