Ok ill get straight to the point so what I think will work.
Make a script that detects how much tnt is despenced by a single despencer thats next to water and if its above ten in the last 3 seconds.
Remove the water sources 8 blocks away from it.