On seeing yourself as inherently broken or flawed
To constantly see yourself as broken or flawed is not the kind of mindset one should ever have. Nobody deserves to carry such a heavy mental baggage.
Everyone has issues. Everyone has their own set of problems. Problems are not an issue. Life, in essence, is problem solving but having a skewed "broken" mindset, life becomes an issue in and of itself. Because every problem that arises does not exist in singularity that needs to get solved and the life builds upon that but rather it is a verdict on the incapability and uselessness of yours. It is a label that you are not meant for the it (insert :job/degree/fun/relation/software/skill/habit/sports/LIFE).
A mistake, then, is not something separate from your identity that happened but rather an exposure of the flaw that you have been hiding. Therefore you are not supposed to commit any mistake at all otherwise people will know how flawed you are.
We as humans are just not built to know everything. We are social being, we thrive my collaboration. Everyone can know or do just enough and then needs the help of others to do the rest of the thing to complete it. But you... you think you are inherently flawed and that is the actual reason you don't know something. To protect your ego, you can not ask for help in most cases from anyone as it will simply showcase that you do not know something or cannot do something. It serves as a proof for your own already established belief about yourself: flawed, broken, incapable.
How one gets such a pathetic view of life, I do not know. Putting blame on anyone or anything (from the past) will probably take you no where. Understanding and becoming aware of the inside voice and then taking small steps to bring change will definielty move you forward.
But there is a catch, our minds are so beautiful and complex that even if you become aware of your patterns or thinking, it is wise enough to fool you into following the same patterns. It will resurface the same underlying story but with subtle changes to the narration. That is why it will not be a one time thing that you become aware of this pattern and bring a complete transformation.
It will take time but there will come time when you won't see yourself as inherently flawed or broken. You formed these neural connections over decades, so you will need some good time to observe and become aware of all the different nauances of the same underlying skewed mindset of constantly seeing yourself as broken or flawed