I've experienced the same problem. I like to think its mostly fixed now. Here are some things that worked for me:
Don't shy away from the ones that call you out, at least if they are giving you friendly pokes rather than being mean. The way I talk (in casual settings), I grew to like saying stuff like "What?!? Really?!? Oh!. I'm full of s--- then!" The value of these people is that they help you learn to recognize the internal cues of when you might be going off the rails. They can probably sense it in your voice tone and body language before you even get the bogus content fully out. You can learn to recognize that in yourself.
Do watch out if you're one of those (like many of us) who likes to talk a lot about stuff we "know" and likes to talk excitedly and at length. Watch some old cowboy movies that feature smart, strong silent-type heroes. If you don't have one already, buy yourself a cowboy hat as a personal reminder. (Substitute any similar character type for "cowboy" - your style choices are yours.) If you feel like you just have to say every clever thing that pops into your head in a conversation, work on not doing that - even for topics about which your knowledge is definitely good. (As a side effect, this makes conversations more interesting.)
Careful if, like many of us, you find it friendly and fun to tell people "Hah, no, you're wrong there! Let me tell you...." Among some geeks/nerds, that really is fun and playful. Among many people, it's not. It's also one of the leading causes of spouting bogosity, studies have shown.
Remember that its just human nature, nothing new. What was it Mark Twain said? Something like "It ain't what you don't know that gets you into trouble but what you know that just ain't so." Something like that, anyway. Close enough.