I think instead of suicide ideation you meant survival instinct.
Even some prisoners on death row who accept the punishment as deserved are afraid to die. They are two different issues, the merit versus the reality of death.
I don't know how one overcomes that.
Assuming you did something truly awful and victimizing -- murder, severe child abuse, torture...
What if, instead, you worked the rest of your life to be worthy to live? The world could use people like that, even people who did awful things. Maybe especially people who did awful things.
You may reject that, but can you at least see how powerful a different mindset can be? Even if only for a while?
You could just as easily find a mindset that pushes you to ctb if that is your choice. But it seems clear that the mindset of being deserving, whether accurate or inaccurate, is not enough. I won't make any suggestions, that feels too much like killing you. Instead, what I've suggested empowers you in whatever choice you make, whether to live or to die.
I sincerely wish for your well-being, whatever that looks like. Even if you were someone who intentionally, deeply hurt me. When one has true well-being, as well as equanimity, they do not bring harm to others or to themselves, and so I sincerely wish that for all, even when I am angry with them, even when they have genuinely earned by horrific actions the most severe punishment.
Edit: And if you only think that what you did was horrific because of distortions caused by abuse, gaslighting, and others inaccurately defining you, then I sincerely hope you will reach out to compassionate others to change that self-annihilating mindset. Either way, you do not deserve annihilation. No one does.