It seems to be mainly down to luck, I had a LED tube last only 18 months and most of that time house was empty, replacement still working when I left.
I have talked a few times spikes on the supply, with any electronic equipment not supplied though some thing like a transformer which can reduce spikes to a safe level, there is always the possibility of spikes damaging the electronics. We have fitted surge protection devices for some time now, or some times called filters, and if we fail to use them, it is hard to blame the manufacturer when items don't last.
Personally I think if it needs some protection it should be built into the device, but I still fitted a SPD when I had my consumer unit changed.
However I have had a number of items fail, a smart socket, three smart switches, and around 5 bulbs in the last 3 years, and no idea if some thing whole with the item which failed, or spikes, but since I have not had a load all fail together I would assume more likely a manufacturing fault.
I have opened up a few bulbs, many are far too complex to work out why,
inside a GU10 bulb, but did open one bulb and find a simple dry joint. I have two integral lamps, the one outside cost me £4 so if it goes it cost less than a bulb normally costs, the one in my hall way my wife also selected, and up to now working OK. But in the main I aim for bulbs and tubes so easy to change.