Everyone knows lack of self confidence is in contradiction to becoming a good teacher. I think your problem is just an obsession. You must know and believe you are better than your students and have a wider range of knowledge. There is a famous sentence: "Teachers are authorities in classrooms." Keep it ringing in yours ears. It might help you.
Student or Learner