Rashes/soreness on 🍆

Me

Whenever I masturbate my skin gets red for next few days and sometimes it pill off. Usually it’s very itchy. I have seen doctor for it but my doc says it’s fungal infection. But it only happens when I masturbate. If I have sex then I don’t have this issue. Also my penis is usually sore for 1 day more when I 👋🏼. I always wondered if this is common or I should take it seriously.