Small pocket of air trapped in a stub of pipe? Aka a water hammer arrestor?
Pressure sensistive bypass will spring shut after the transient, possibly making the hammer worse. Water hammer does not behave how one might expect. The sudden pressure build up caused by the interia of the moving water needs to be dissipated/absorbed by something.