IIRC the central locking is designed to flash the hazards and unlock the doors if it thinks you have been in an accident, I don't know where the sensor is but I'm thinking that if the hazards fkash and the doors lock/unlock when you change the dip/main on the hids then that could be the cause.
I didn't know if you had 200 or 300 TDi, the 300 would have had airbags, the early ones have remove airbag(SRS) sensors like my Soft dash, later Discos had the all-in-one-box system.
But that doesn't apply to yours anyway.
To answer your first question, I suggest using rubber gromets to isolate the mountings of the headlights so that the shock is not transmitted.