advice?

When i get comfortable with people i get really hyper and talkative and then i do one little thing and i feel like i’m annoying and just a burden and it makes me regret ever talking or letting myself open up to people.. then i get sad and i just shut up and go back to my quiet self.. does this ever happen to you guys? what do you do to fix it?