If the LED does something important (rather than illumination), you will have to see what it does before replacing it.
Sometimes, an LED is used for a bias voltage, and can be replaced by a low-current shunt regulator, e.g.,
TL431 for >2.5 V, or
TLVH431 for >1.24 V.