If there’s a significant enough problem, these construction manufacturers have a tendency to go out of business and reorganize, voiding all the warranties in the process.
Actually, I'm remembering there were some widespread failures of PEX-C. Hmm.
It's been interesting living in a new-ish apartment building. Everything in the condo was garbage (the early 80s were not kind to construction in the US) assembled reasonably well. Everything in this apartment is pretty reasonable quality assembled by a small army of blind glue sniffing idiots.
My concern with plastic pipes is wildfire. Up in the north bay the municipal water was rendered toxic and unusable after fires got things hot enough so that carcinogens were leeching into the water. That's less of a concern with individual buildings, but it's not fun when a city or water district has to rip everything out of the ground.
It seems a hard question to get an answer for, as most research I have found is clearly sponsored by the PVC industry.
[0] https://www.ipexna.com/media/3074/pvc-pipe-longevity-report....
20 years is fine assuming all the piping is easy to get to (e.g. around a hot water heater). A lot of piping is not and would require refinishing quite of a bit of piping.
My research seems to indicate most residential plastic tubing still has a lifetime of 20 years, from what I can tell.