The pain could be caused by the csf draining into your abdomen. After my first shunt I too had those awful pains.
One time they shortened the drain tube which helped a lot!
Another possible cause...