There is no risk from a handjob or mutual masturbation. Whatever you're feeling, it's not from that.
Make sure you aren't dehydrated - drink plenty of water, avoid caffeine and alcohol, and see how you feel in a couple of days. If it's still lingering, see your doctor. It's not an STI.