Solar farms are hurting the ecosystem when they break and leak out. Even if they aren't liquid based, solid state versions have thin films which contain some chemicals like cadmium and arsenic. Cadmium telluride has been introduced more recently has it is safer.
Liquid solar panels are simply not a production-ready technology. There are no commercial liquid solar cell farms. Installed solar panels are solid. They're not particularly prone to corrosion and 'leaking', and are >99% silicon with trace amounts of boron and phosphorous. CdTe is actually nastier.
Solar farms are hurting the ecosystem when they break and leak out
[citation needed]
Admittedly, as with all e-waste, we need to look to what happens to solar panels when their life is up and they are landfilled or, hopefully, recycled. That said, over its 25+ year useful life, a solar panel will prevent tons of coal from being burned, which in and of itself would release a non-zero amount of cadmium and other heavy metals into the atmosphere.