The links you shared about solar panels don't paint a hugely worrying picture. The vast majority of materials in panels are inert, and newer panels are using less and less toxic materials like lead.
And all the talk about panels and wind turbine blades ending up in landfills sounds alarming, but these "big" numbers they spout need to be put in context. I'm betting it is just a tiny percentage on the total landfill generated by society, and the costs mentioned in those linked articles don't seem "unaccounted for", they seem pretty reasonable at a few dollars per panel.