Check the BSM unit in engine bay they get wet inside and causes all sorts of problems headlights going on/off by them self is one of them.
Had problem with my headlights going on and off by there own and it was the this BSM unit.
Have a look at my posts
Ric (AlfaDriver69)