I had similar on my Plus8 rear foglight. Started as intermittent flashing on/off, even when not switched on. Checked fuse and ok. Worked back from the bulb and nothing obvious. Dash off and checked the switch and control box. Switch ok but the box rattled so opened it. The pcb inside was loose so hotmelt glued it back. Worked for a while then played up. Opened the box and all appeared ok. Tried getting a replacement but none available ( tried Melvyn Rutter and even factory direct) none available. Plenty in the factory for older Plus8’s but not the later models. GRRRR! I was about to order a unit from Carbuildersolutions when under a magnifier I spotted a couple of iffy solder joints. Quick dab with a soldering iron and fixed. No subsequent problems.
The car was about 13/14 years old. Electrics getting old ( relatively). Hence starting to think about long term ownership plans/system overhauls.