“Lift yourself up by your own self; don't drag yourself down. You alone are your own friend, and you alone your own enemy.”
You can be your own best friend or your own worst enemy. Krishna asks you to choose to be the friend.
The voice that says “I'm so stupid” can be the loudest in the room. The Gita says that voice is partly yours to change.

“Lift yourself up by your own self; don't drag yourself down. You alone are your own friend, and you alone your own enemy.”
You can be your own best friend or your own worst enemy. Krishna asks you to choose to be the friend.
“For someone who has mastered themselves, their own self is a friend; for someone who hasn't, it acts like an enemy.”
The voice in your head isn't fixed. With practice, the critic can become a coach.
“Don't give up your work because it has faults. Every undertaking is clouded by some fault, as fire is by smoke.”
Nothing anyone makes is flawless. Waiting until you're perfect means never starting.
Self-doubt sounds like the truth because it speaks in your own voice. In chapter 6 the Gita makes a striking claim about that voice: you are your own friend, and you are your own enemy (6.5). The same mind that pulls you down can lift you up.
That isn't a call to pretend you're great at everything. Krishna's word in 6.6 is mastery: your own self becomes a friend once you've learned to steer it. Like any skill, it takes practice. Catch the harsh sentence, then say it again the way you'd say it to a friend.
A lot of self-doubt is really perfectionism: not starting, or not handing in, because it isn't good enough yet. Near the end of the Gita (18.48) Krishna points out that every fire has smoke. Every piece of work has faults. That's no reason to put it down.
…the Self the friend of the self, and also the Self the self's enemyBhagavad Gita 6.5, Annie Besant's translation (1922)