Hello~It sounds like you may have a type of yeast infection or a form of balantitis inflammation of the foreskin and head of the penis.
Treatable by a medical professional
Requires a medical diagnosis
Lab tests or imaging not required
Short-term: resolves within days to weeks
Balanitis is most common in uncircumcised men. Causes include skin disorders, infection, poor hygiene, uncontrolled diabetes and harsh soaps.
Symptoms include pain, redness and a foul-smelling discharge from under the foreskin.
Treatment depends on the cause, but may require antibiotics, steroid creams or antifungal creams. In extreme cases, the foreskin may need to be removed (circumcision).