I made two fairly serious errors intern year, either of which could have resulted in some fairly bad things happen. Luckily, I caught the first one just in time, and the latter just made a patient sleepy for a few hours. I think I bawled in the bathroom for quite a while after both of them. And it probably took a few weeks before I felt normal again and wasn't hyper questioning everything I was doing.
Making a mistake makes you feel like you're incompetent, evil, and exactly the sort of doctor you never wanted to be. And my God, you just sacrificed some of the best years of your life on an altar taking out a small extra mortgage worth of educational loans while your family around you suffered just so you would have the privilege of becoming a doctor. And if you make a mistake, not only does your brain call into question the security of all that work, but you even worry if you DESERVE to be a doctor.
These are all cognitive distortions and none of them are true. Mistakes happen. Mistakes happen to REALLY GOOD doctors. You're grieving a fantasy of infallibility that we all develop. We give up so much to become doctors, our brain has to fantasize just to protect us against our insecurities. We are so vulnerable as trainees even in the most benign and supportive of programs. Early residency is an eternal cycle of constantly being expected to be better than you are, even if you are, for your developmental level, really good. It gets a lot better.
So, I guess I'm just saying not to be so hard on yourself. And it will get better. If your PD is worth anything, you should get some support, and they should also figure out if there might be something they need to help you with to make sure you're as good as you can be. If you don't get that support, it's not because you don't deserve it.