Insecurity takes many forms. Identifying it as it’s taking place is done only by those mature enough to have experienced it themselves and healed from it. Telling someone all that you know on a given subject is often a sign of insecurity. Likewise, receiving someone’s over communication as insult to your intelligence only points to your own insecurity.
Speak only what is needed, and receive knowledge with grace. You will find more people ask for your knowledge and more people share it with you.