One must have a firm purpose of amendment for confession and to avoid the near occasions of mortal sin.
Now for readers - if one plans to commit mortal sin …that makes for a “bad” and invalid confession. If one does not resolve to avoid mortal sin (such as part of ones contrition) that too can make for such.
It is one thing to have a struggle and keep falling -while resolved each time not to commit a mortal sin and to avoid the near occasion of mortal sin – and quite another not have such a needed resolve.
But just because one repeated falls does not mean that one has not repented sincerely.
I would suggest having a “regular confessor” (the same Priest to guide you in confession) to address all of this.
Let us remember Jesus of Nazareth is The Lamb and the Good Shepherd …
"Jesus is called the Lamb: He is the Lamb who takes away the sin of the world. Someone might think: but how can a lamb, which is so weak, a weak little lamb, how can it take away so many sins, so much wickedness? With Love. With his meekness. Jesus never ceased being a lamb: meek, good, full of love, close to the little ones, close to the poor. He was there, among the people, healing everyone, teaching, praying. Jesus, so weak, like a lamb. However, he had the strength to take all our sins upon himself, all of them.
“But, Father, you don’t know my life: I have a sin that…, I can’t even carry it with a truck…”.
Many times, when we examine our conscience, we find some there that are truly bad! But he carries them. He came for this: to forgive, to make peace in the world, but first in the heart. Perhaps each one of us feels troubled in his heart, perhaps he experiences darkness in his heart, perhaps he feels a little sad over a fault… He has come to take away all of this, He gives us peace, he forgives everything. “Behold, the Lamb of God, who takes away sin”: he takes away sin, it’s root and all! This is salvation Jesus brings about by his love and his meekness. And in listening to what John the Baptist says, who bears witness to Jesus as the Saviour, our confidence in Jesus should grow. Many times we trust a doctor: it is good, because the doctor is there to cure us; we trust in a person: brothers and sisters can help us. It is good to have this human trust among ourselves. But we forget about trust in the Lord: this is the key to success in life. Trust in the Lord, let us trust in the Lord! “Lord, look at my life: I’m in the dark, I have this struggle, I have this sin…”; everything we have: “Look at this: I trust in you!”. And this is a risk we must take: to trust in Him, and He never disappoints."
"Jesus is the “Good Shepherd” who goes in search of lost sheep, who knows his sheep and lays down his life for them (cf. Mt 18:12-14; Lk 15:4-7; Jn 10:2-4, 11-18). He is the way, the right path that leads us to life (cf. Jn 14:6), the light that illuminates the dark valley and overcomes all our fears (cf. Jn 1:9; 8:12; 9:5; 12:46).
He is the generous host who welcomes us and rescues us from our enemies, preparing for us the table of his body and his blood (cf. Mt 26:26-29; Mk 14:22-25); Lk 22:19-20) and the definitive table of the messianic banquet in Heaven (cf. Lk 14:15ff; Rev 3:20; 19:9). He is the Royal Shepherd, king in docility and in forgiveness, enthroned on the glorious wood of the cross (cf. Jn 3:13-15; 12:32; 17:4-5)."
~Pope Benedict XVI
"I invite all Christians, everywhere, at this very moment, to a renewed personal encounter with Jesus Christ, or at least an openness to letting him encounter them; I ask all of you to do this unfailingly each day. No one should think that this invitation is not meant for him or her, since “no one is excluded from the joy brought by the Lord”. The Lord does not disappoint those who take this risk; whenever we take a step towards Jesus, we come to realize that he is already there, waiting for us with open arms.
Now is the time to say to Jesus: “Lord, I have let myself be deceived; in a thousand ways I have shunned your love, yet here I am once more, to renew my covenant with you. I need you. Save me once again, Lord, take me once more into your redeeming embrace”. How good it feels to come back to him whenever we are lost!
Let me say this once more: God never tires of forgiving us; we are the ones who tire of seeking his mercy.
Christ, who told us to forgive one another “seventy times seven” (Mt 18:22) has given us his example: he has forgiven us seventy times seven. Time and time again he bears us on his shoulders.
No one can strip us of the dignity bestowed upon us by this boundless and unfailing love. With a tenderness which never disappoints, but is always capable of restoring our joy, he makes it possible for us to lift up our heads and to start anew. Let us not flee from the resurrection of Jesus, let us never give up, come what will. May nothing inspire more than his life, which impels us onwards!"
~ Pope Francis