Self-doubt isn't real. Your brain just made it up to serve as a defense mechanism to failure. Cut it out!
Newsflash: Failure is a good thing when you actually learn from your mistakes, persevere and use it to your advantage to do better next time.
Don't take shit so personally that's exactly why you are here.