Hurts when I climax?

So I'm a virgin and I've recently started masturbating. When it seems I reach the peak of pleasure, my clit hurts and I have to stop. Help?