In my kitchen I have a flushmount light with an integrated led. I put in an LED dimmer on the switch and all is working well.

However, I had to replace it way sooner than I was expecting. Is there a possibly that the dimmer is hard on it?

I have the exact same one on another non-dimmer switch that is still running fine. That said the other one gets much less use so it could just be that.