The girlfriend was having the same problem in her 206 using bulbs from halfords. Got a bulb from main dealer and its been fine since. It could be something completely different on the BMW though.
make sure your using the correct amp fuse and check for any loose connections on the bulb loom,and make sure that theres no vibartions that the c clamps are closed properly thats usually the problem