How can I overcome feelings of unworthiness after finding mistakes in my research?
I'm going to suggest you attack this on three fronts:

1) As you progress as a researcher, I think you will come to realize that minor errors in published research are actually quite common. I define minor errors as those that don't affect the conclusions of the paper. See this question/answers: How common is it for submitted papers to have minor errors? 

2) Understand that corruption is actually about intent and secrecy. High profile cases of corruption and ruined careers only generally happen when the researcher or the study is famous and the problem involves purposefully lying. You can easily avoid this type of situation by putting a corrected version of the paper on your website. See this question/answers: How does an Erratum on one&#39;s own paper affect one&#39;s career as a researcher?

3) Get a handle on how you think about problems like this, which are relatively common in the life you have chosen. I would suggest that there is a long way between "reasonably cautious"/"feeling embarrassed" and "extreme anxiety"/"failed my life goals and my moral values"/"bad person that does not belong in academia." I am going to strongly suggest seeking out your university counseling services, if available. See my answer to this (only somewhat related) question: How do I know that I have truly lost interest in research and should drop out of a top CS PhD program?  Or similar: How to deal with fear of failure as a PhD student?