Is it so hard to imagine areas of the software industry that produce real measurable harm? One doesn't even need to go so nuanced as gambling or other such things - how many software engineers does the 'defence' industry employ?
There's also software engineers that work in ads. Instagram [known to have a causal effect in eating disorders, which is one of the more deadly mental illnesses]. Health insurance [unitedhealthcare was using software to automatically deny people healthcare-- this definitely has killed people].