Tens of thousands? I had no ideas that many dams existed
https://en.wikipedia.org/wiki/Lake_Tahoe_Dam#/media/File:Lak...
This seems like some stats run on the CIGB/ICOLD's database (world register of dams) https://www.icold-cigb.org/GB/world_register/world_register_...
And notably what they mean by a large dam: A dam with a height of 15 metres or greater from lowest foundation to crest or a dam between 5 metres and 15 metres impounding more than 3 million cubic metres
The knowledge is already there, it's about funding and not overbuilding what you can't maintain. For the same reasons many bridges are reaching old age/end of life.