Life-time of PV panels and wind turbines is 20-30 years.
After which they become, well, "toxic waste" with high content of metals such as cadmium. They require careful decommissioning, recycling and waste management.
Failed PV farms did contaminate vast areas with heavy metals in the past.