The way it usually goes is "everyone is +5, except the village that shares the watershed with the mine"
On anything but the shortest timeline things like like wealth, health and productivity are fungible at the societal level.
If the net cumulative effect of the externalities wasn't smaller than the benefits of the progress then the progress wouldn't happen because more people would be worse off and things would grind to a halt because the gains would be more than offset.
It's still naive, or maybe obtuse. Repeating the "negative externality" buzzword doesn't give you a blank check to peddle your preferred ideology (government intervention/regulation) while crapping on the other team.
Without regulation we get lithium batteries and a couple dozen poisoned watersheds.
With regulation we get slightly more expensive batteries and fewer poisoned watersheds.
Regardless of how you or I or anyone else feels about regulation it's somewhere between farcical and deceitful to pretend that the economic activity in both of those situations doesn't help more than it hurts. If it didn't work this way progress would grind to a halt because the increased material wealth of having the batteries would be more than cancelled out by the problems that poisoned watersheds create, to run with the existing example.