Does anyone know what I can do to heal this?

This is the inside of my legs next to my groin. It goes away and then comes back like 2 days later. I make sure it’s always clean and dry and it feels like my skin is ripping when anything touches it and it smells bad. At first I thought it was yeast infection but it keeps coming back. I’ve never had this till about 2 weeks so just wondering is any of you all know what it is and what to do to make it heal.