OK, so the symptom (loud banging) is a result of restricted flow through the (clogged up?) heat exchanger... that makes sense.
Short term solution = change heat exchanger...
However the damage to the exchanger which is resulting in a restricted flow must be being caused by something...