£4m project to stop flooding after M6 upgrade disruptio