The Parker IQAN line has a nice set of hardware components for task like what you are doing. Be careful some of the fancy engines have a little display that conficts with the third party hardware. For example: on a system I put together with a Volvo turbo diesel I ended up removing the...
Asking how to survive a hammer is the wrong question. Avoid causing it in the first place. Water is a very rigid fluid, treat it with respect.. 1.Use a VFD or softstart on the pump.
2.Close valves at a controlled rate.
3.Use a surge cushion (accumulator) as a last resort.