It's normal to experience testicular pain after masturbation,especially if it's done more frequently than not. Longer masturbation may lead to vasocongestion, also called blue balls. You might try masturbating less frequently and with less force at the beginning. If the problems continue, you can consult a urologist.