Author here - I did have that problem in the distant past while battling a dodgy BNC terminator but luckily we were mostly on CAT5 by the time I was doing networks with friends. I won't put in writing the ill-advised technique I used to avoid getting shocked.
Lol! Thanks for the trip down memory lane.
Pro tip - Use a cloth for insulation while handling them