Just as WilliamM2 said. This applies both to older incandescent bulbs with filaments that burn out due to lack of cooling, AND to LED's. For LED lamps, the LED element that generates light is not the item that fails first. It is the other solid-state components in the small power supply unit in the base of the lamp that fail from lack of cooling. Even though such lamps create less waste heat that an incandescent filament lamp, what is generated is concentrated very near the base of the bulb and may not have good air circulation around that to allow cooling.
I'm speculating here a bit. As WilliamM2 says, look for lamps rated for use in enclosed fixtures.Ones with candelabra bases may be even harder to find. But MAYBE what they will look like is ones that have about half of the lamp body (nearer the base) as a solid material that almost looks ceramic, while the clear (or foggy) part farthest from the base is where the light comes out. I can't recommend any specific lamps - I don't have any fixtures like that any more. I DO use some LED lamps with the common larger "Medium" base in power levels of 15 W to 25 W (equivalent to incandescents of 100 to 150 W) in "closed" fixtures (one is outside over our front door) but they do have small slots in their upper surfaces for some hot air escape.