The problem/use of HCl in saltwater is it's a strong acid. It will affect your alkalinity as well as your pH.
I've used muriatic acid (diluted hydrochloric acid) in systems with animals to drop the alkalinity. It's kind of a two-step process, as the first thing it affects is pH. This is where the danger comes in. So when I add acid to a given chamber in the system, or even just any container of seawater, the pH will drop, which causes more of the inorganic carbon in the water to exist as carbon dioxide (and thus carbonic acid). With adequate aeration over time, the CO2 gasses-off and the pH rises. But you've lost inorganic carbon as CO2. Inorganic carbon that was previously carbonate or bicarbonate. Hopefully that makes sense. If not I'll include the pKa curve for a clearer explanation.
So while it can be useful for lowering alkalinity, the short-term effect is low pH. That's what causes things to die. Algae can be one thing that dies, but that's a really rough experience for a coral. Especially a stony coral. It's not uncommon to see the local pH drop to 5 when I dose, which is miles past "ocean acidification" levels.
If the addition of HCl is low-enough that it won't impact total pH in the system by much, then it's often fine. The long-term effect is lower alkalinity. It's getting through the low pH period that's risky for desirable organisms.
I once had a customer call about a problem with his catfish pond. It was spring-fed but the water only exited through evaporation. After years, his catfish were no longer eating and could not be caught on hook and line. His pH was 9.0. I told him he could go to Home Depot, buy a bunch of muriatic acid, and add it to his pond over time. I warned him that I could not say how much he would need, but "add it slowly, distribute it well, and wear PPE". A year later he got me on the phone again with "oh yeah, you're the one who told me to add acid to my pond". I knew it was risky, but fortunately he thanked me. He got his pH down to 7.0 and the fish were acting normally. If I hadn't been the one to answer the phone, I would have wondered whether my advice killed his fish and he ghosted us!