It is hard to be perfect. Michael Jordan was best in world and only made shots less than 50%. I would like you to consider that guilt is usually the result of being hurt by someone has too high of expections of you; it get distorted to guild as anger from the resentment of the demands is less socially acceptable than anger. Think about it and let it sink in. Watch your reactions to see if it helps. Adjust your expectations to that of being human, where we all make errors and learn from them.
I know a lot of the sources of my anxiety are from my parents. I'm from a family of very high over-achievers (my brother is a world-renowned Applied Physicist, for example), and my Dad almost became abusive (he hit my sister a few times, but never hit me, although I was always scared he would). An A- on my report card may as well have been a C to my family.
What I'm not clear on - I try to tell myself that a mistake is OK, and focus on what I learned from it, but then I catch myself over-thinking and analyzing it to pieces in my head until I'm sick to my stomach over it. I'm trying to keep a journal right now, and focus only on the positives that come from making a mistake, but I'm not sure if this is a logical approach to stop the pattern.
Knowing where you got it is a start. So is journaling. I would really get a few counseling sessions. I once had a patient that was a star basketball player. He scored 37 points in championship. All is father said was "why did you miss that free-throw". Would you apply same standards and impose misery on your friends?