You’re most likely too scrupulous! The solution is easy. Find a traditional priest. Get conditionally baptized. All the graces, good works, etc. you fear are for naught will immediately be credited to you, also, all your sins are forgiven!
If this doesn’t seem easy, you either have a problem with scrupulosity or you do not know your catechism regarding sin and baptism. No matter which one or combination thereof, see a priest who will be more than delighted to assist you.
Do not delay in regaining your peace of mind.