Yes, there are more environmentally friendly ways to make PCB etching solutions. One common method is to use a ferric chloride solution as an etchant. Ferric chloride is a relatively cheap and readily available chemical that can be dissolved in hot water and used to etch PCBs. However, the disadvantage of this method is that the ferric chloride solution itself is brown and dark in color. If the concentration is large, the corrosion of the PCB soaked in the liquid cannot be seen clearly.
Another more environmentally friendly approach is to use "environmentally friendly corrosives." The composition of this corrosive agent is unknown and may be chemicals such as sodium persulfate. When this corrosive is dissolved in water, the solution is clear and transparent, easy to observe, and not expensive. It is recommended for use under amateur conditions.
Alternatively, try using a combination of hydrogen peroxide + hydrochloric acid as an etchant. I haven't tried this method and the effect is unknown. It should be noted that no matter which etchant is used, the corresponding safety operating procedures should be followed to ensure production safety.