Solar panel materials are extremely toxic (current tech), or are toxic unless properly processed (hopefully, but likely, future tech).
So they won't be made in the EU, since nobody wants to make concessions here. Solar panels have the same problem as oil and mining: they will destroy nature somewhere, otherwise it doesn't work.
Crystalline silicon solar panels have about 95% market share, and "By weight, the typical crystalline silicon solar panel is made of about 76% glass, 10% plastic polymer, 8% aluminum, 5% silicon, 1% copper, and less than 0.1% silver and other metals."
Everything that is manufactured is made out of atoms, and you can say that any manufacturing requires some nature destruction in the aggregate. But solar electricity requires far less mining and natural despoilation than fossil-fueled electricity.
Solar panels contain quite a bit of lead, and small amounts of cadmium. Lead can be taken out if you're willing to pay a bit more, in other words it never is. Cadmium is required. Other metals are sometimes present.
So solar panels are classified as hazardous waste.
Cadmium is only required in cadmium telluride solar panels, which have less than 5% global market share. Lead solder is still common in crystalline silicon panels, though not universal; modules built with heterojunction cells typically avoid solder because the cells can't tolerate temperatures that high:
So they won't be made in the EU, since nobody wants to make concessions here. Solar panels have the same problem as oil and mining: they will destroy nature somewhere, otherwise it doesn't work.