This is why I still own most of the vehicles I've purchased over the last 30 years. It is much cheaper to replace worn parts, ideally before they fail, than it is to replace the entire vehicle. I have the skillsets needed to maintain my own equipment and the tools so I just monitor the operating condition of each and replace or repair things as needed.
These planes have regular maintenance checks and diagnostics to help identify issues before they become catastrophic failures. This whole thing is likely a normal maintenance issue, maybe unexpected due to the unusual nature of the scenario they face with so many idle jets, but not something that would have escaped their servicing routines. The system flagged a problem and now they can address it. If for some reason their diagnostics were not set up to detect this sort of issue then you have a problem.
Airplanes worry about fatigue. They have to be replaced after so many years or the wings will fall off in the air. If the airplane is only a few weeks away from replacement when it fails an inspection you scrap it now, if it has years to go you replace parts.
Not that I want to be pedantic, but that's a rather sweeping statement. The decision to scrap would depend on things like the number of flight hours and takeoff/landing cycles on the air frame and the number of other worn parts, hitting meantime-before-failure on large numbers of parts/assemblies, such that it may be more economical to scrap.
These planes have regular maintenance checks and diagnostics to help identify issues before they become catastrophic failures. This whole thing is likely a normal maintenance issue, maybe unexpected due to the unusual nature of the scenario they face with so many idle jets, but not something that would have escaped their servicing routines. The system flagged a problem and now they can address it. If for some reason their diagnostics were not set up to detect this sort of issue then you have a problem.