You do not have to live in a prison created by your failures. You are not a prisoner of your past.
Admit your sin. Be honest with yourself and with God, and possibly another person.
Ask for forgiveness. First, from God and maybe then from someone you hurt.
Learn from your mistake. Take this as an opportunity to grow.
Let it go.
The grace of God does not get you through a difficult season but leave you bound to pain. It is about breaking chains, opening doors, and being set free. When the son sets you free, you are free indeed.