Aside from workforce automation I would hesitate to work on any of those problems. I also recognize that workforce automation has significant impact on the people whose work is automated away and I would prefer we as society took better care of people, but I feel like that is a different class of harmful than the other examples.
Yeah its tough. One that doesn't get though about as much is libraries/frameworks or generic technology that can be plugged into these projects. If one of these firms had to reinvent a message broker or event streaming framework or front-end/UI library everytime they built something it'd not be profitable.