Jelly like clumps in semen , scared to s**t , any piece of info is crucial

im a 21 year old male never had sex , about my issue i will tell you from the beginning so that you can understand the cause , i mastrubate like 5-6 times a week and on a scale of 1-10 on addiction to mastrubation i would rate myself 5 . so one day i mastrubated as usual but i noticed my glans being very much red which i never noticed before , and i admit i was rough on my penis that day. next day i noticed some kind of rash on my glans and i applied clotrimazol which is a antifungal cream,( i did this bcoz it happend to me previously like 3-4 times and every time it went on applying this cream) and i next coue of days i noticed my galns has swollen up and it has become red and rim of glans turned purple . i ignored it for few says but it didn’t improve and along with that my glans has become very very dry, like it has stopped lubricating itself , no pain experienced till this day , after like week later i felt pain in my Crouch region not exactly in testis but the pain kept on moving its place sometimes i felt pain near abdomen , in the alternate testis pain was not severe but i could feel it . during these Symptoms i thought of mastrubating as it might solve the issue but i noticed some jelly like clumps in semen got really disturbed , consulted a doctor next day explained him everything he prescribed some medicine and told me everything looks normal not to worry , and the medicine he prescribed were for infection in instestine (worms ) . there is no pain now but my semen is clumpy and has those jellies till date and im worried a lot

Okay, so the good news is you have never had sex, this is where the vast majority of genital health problems emanates.
With the use of antifungals that you have been using there must be a source of the problem, and if you are not having sexual contact this can only be linked to your personal and genital hygiene. Often this is linked to what you do on a daily basis and the climate in which you live, such as a hot humid climate where it can be really difficult to control sweat, and in-turn, this can lead to an infection.
Also, if you are an active person, such as lifting and carrying items at work, work in a warm or hot environment, do sports training and / or competition, or simply do something like cycling on a regular basis this is where your sweat may derive on a regular basis.
What you would need to find is whether you can do anything with the regular clothing you wear to reduce the sweat you have - or perhaps you simply may need to change clothing regularly, and take showers more regularly.
However, I am not sure whether you still have any sensation of pain, as you may still have some infection?
The general advice would be to try to ease back on the masturbation you do. Try taking a complete break for 3 to 5 weeks if you can, then limit yourself to 1 or 2 times per-week for a few months.
You may need to see a doctor again, or perhaps even a Urologist depending on what you have going on right now … ?

@Wee_Dugie Thank you for the advice , i have no pain in crouch region lately , last week i managed not to fap but on 14 day i relapsed just out of curiosity to see the presence or absence of clumps in semen , but those clumps were present . i will maintain hygiene down there . any idea what those clumps maybe?

I have never known any one else report the clumps that you have - unfortunately the only specialist that would have insight on issues like that would be a Urologist that you would need to consult.
If you can severely limit masturbation as much as possible that may help the situation to resolve itself