Just put a beefy stop in the middle of your 80 meter run right before point B, and put some occasional forces at your first four or so elbows to check the occasional stresses. I am sure there is some calculators to come up with a shock load value, based on flow rate and how fast you close that valve at B, but I would only consider loads from B to where it goes underground, just as a sanity check.