That is the main reason most of the people sell their old cars. They have one of these free healthchecks, they realise that they have to pay cash for repairs and so they enter in another PCP "deal" and the cycle continues for ever. In reality, the depreciation is much higher than the repairs.
If you do these repairs, you will not have to do them again. It is more likely that you are the first owner who does these repairs.
It makes sense for the space and this were you have to balance the risk of another unknown quality old car compared to the trusty one.