How do embankments along rivers like the Kosi create new risks even as they prevent floods?

The Kosi river's shifting course despite embankments makes me curious about the unintended consequences of such flood control measures on people and the environment.