It is an awful experience, and the terrible lie the Enemy tells is that God wants nothing to do with you because of your sin. Far from it, God wants you to get away from your sin, so much so that He became man and bore our sins for us on the Cross. He’s willing to get into the messy and the disgusting with you in order to save you, so when you feel like you’re not wanting to draw close to God, remember that he still wants to draw close to you.
Your first step, though, should be one of contrition and repentance. In the Confessional when you’ve time, but at least in private prayer if you don’t yet.
At one point I convinced myself that if I gave it a few days without falling into any conscious sin, then I could be closer to God again, kinda like a fight with my wife where we kinda get over it The problem is that the farther away I am from God, the mroe likely I am to sin again. Diabolical setup, isn’t it? The answer is to run, screaming, back to God as soon as you sin - or better yet, when you’re feeling tempted.
Do you know that feeling of ‘running hot’ where that temptation is all you can think of? That’s a really great time to run to God. If you’re feeling a biological reaction that’s getting in the way, prayerfully take a biological measure, like sniffing (not huffing) a whiff of vinegar, or doing pushups or dropping an ice cube down your shirt. Anything to distract you and let you be the master of your body again. Once you have the attention of the flesh, it more easily conforms to the will of the Spirit.