If you can’t feel confidently righteous when you do something wrong, then when? Only when you do right? You could’ve done that if Jesus never came. Jesus’ atonement is useless then.
Thanks to Jesus, when you sin, how should you feel? Righteous. If you don’t think that’s fair, remember that Jesus felt the condemnation of our sin, even when He did everything right. Now, you can feel the glories of being righteous, even when you do wrong. That’s just basic knowledge of Jesus. Enjoy being righteous. It will produce great fruit in you!
2 Corinthians 5:21 (NKJV) For He made Him who knew no sin to be sin for us, that we might become the righteousness of God in Him.