On net Dams have saved far more than 170,000 lives in china alone. Flood control is more or less a necessity in the modern world adding energy generation on top of that is a minimal risk. ex: From 1998 https://en.wikipedia.org/wiki/1998_China_floods loss of 4150 people, and 180 million people were affected.
PS: Direct deaths where ~26,000 people. The 145,000 died during subsequent epidemics and famine which where blamed on the dam, but that was a convenient excuse and far from the root cause.
Even with lot's of flood control floods still kill some people. But, dams prevent many floods, reduce severity, and generally give significant warning time when there not going to be enough. So, most deaths are from small rivers that feed major ones instead of major rivers overflowing.
Without them, things would be far worse.
https://en.wikipedia.org/wiki/Ludington_Pumped_Storage_Power...
The Banqiao Reservoir dam failure alone killed over 170,000 people and made over 11 million homeless.
I worry far more about the hundreds of millions of people living downstream of the Three Gorges Dam than I do about people living near fission plants.