No less that half my led can lights are unusable - either they "burned out" (whatever that means for an led light, but they did), or they flicker too much or buzz too loudly. I gave up on replacing them and am just living with the ones that work. I don't know where to buy good ones - the led market 99% scammers. The crap at the big box hardware stores is not worth it. I've probably spent more money in one year on defective leds lights than I spent on incandescent bulbs in 40 years.
LEDs are sensitive to heat. It might be that recessed lighting is causing your bulbs to overheat and fail early because they don't have enough ventilation.