Erection hurts after first sex/masturbation

So, after I orgasm for the first time whether it is during sex or maturation, the following erection already hurts. No problems with the next erections at all, no dysfunction, but they hurt so much. Does anybody know what causes that?