...
While the LED may indeed be bad, I would first check all the connections in your wiring to make sure there is no corrosion or break in the wires. This is far more likely to be the case. A voltmeter can really help and these days, are available for pretty low cost. I picked up one for free last week as a coupon "prime"/freebie at a tool store. Riding on salted roads can in time affect connection integrity as well. Excessive resistance can affect brightness and it is possible your problem is there rather than in the LED itself (fingers crossed for your good luck).
+1 on checking the wires first. I also ride 24/7 lights on all year round and don't trust my 50+ year old eyes for their light sensitivity any longer when actually dark- but I have been riding hub dynamo powered LED lights on mine/family member bikes for years and know that poor cabling is the biggest culprit behind most light issues I've come across.
I don't have a voltmeter but after my son (with good eyes) was complaining his not so old LED lamp was not that bright any more, I hacked a USB cable, soldered a couple of spade connecters to the cut off end- and used a USB power bank to test a 'faulty light' direct at its input terminals. Hey Presto, and a weak beam LED shone in brighter glory again.
I replaced the suspect cabling a few days later which looked otherwise fine with something a bit more substantial/thicker looking which resolved my son's problem. Of course there is no guarantee this resolves your light issues, but the USB powerbank test might at least prove or eliminate one possible cause.
An upside- my son used the USB cable and powerbank as temporary power source between my identifying the problem and actually fixing it. So I created an easy to make potential emergency 'get you home' lighting fix that might be useful for others with a spare powerbank and an old USB cable they might carry when cycling. Basically making dynamo lights into temporary battery powered lights.
The USB power bank used was a cheapo 5000mah 5V affair I got free at a trade show. It lit front and rear lamps for a daily ride of approx 90 minutes and where he was down to 'one bar' by time he got home. A decent powerbank might be recommended if you planned to power dynamo lights from battery power for longer rides.