As another commenter said, they are designed to work for 5ish years. That we have had Hubble so long is essentially a miracle. Same thing for the Mars rovers that limped on for years despite only being designed to last months.
Also your claim about the instruments on Hubble is incorrect.
See: https://www.nasa.gov/content/goddard/hubble-space-telescope-....