The Option is Yours!
When you commit virtuous deeds, they nullify the results of your evil thoughts and actions.
The option of getting either good results or bad is with you. If you think evil, misery results. If you do good, you derive happiness. So, if you understand that your evil deeds are the cause of your sorrows, you have found the way to happiness. Evil is like debt. To offset this debt, you have to accrue more of good. When you commit virtuous deeds, they nullify the results of your evil thoughts and actions.
Instead of worrying over your life, start thinking productively. And as I said, the option is yours. An effort is required for evil deeds only; for doing good, you need not put in any effort.
Think good, hear good, do good. Anything that does not affect others is good. If you can, do good. Else, at least refrain from doing evil. Such a simple definition: not to do bad is good! Perhaps, for doing good, you might have to exert yourself and use up resources of time and money; you need to have a kind heart. But by abstaining from evil, you do not lose anything.
If our faith in God is total, miracles happen. The only impediment is your faithlessness, or half-baked faith. Trust, and trust absolutely. Then miracles will happen.