I am having a similar problem.
On my 325 2002 e46 some water leaked through, now one of headlight's comes on when I do the following for 2 minutes and then turns off :
1. Unlock the car via key remote
2. lock the car via the key remote
3. open a door.
Any ideas if this is related to the lcm?