Are you sure it doesn't have auto-levelling headlamps? If the levelling device is coming apart, the headlamp will never detect it's level, so it will carry on running the motor until it fuses or breaks.
I'm not sure why this would come on with the sidelights though, unless it's another fault as well :?