Sounds like the little capacitor in your led light bulb is going bad.
Only thing you can do get a new led light bulb and replace it. The led light bulbs only last a few years for me then they start going dim or doing the flashing like you said.
They usually start flashing before they go dim.