I feel these things when someone might call out or stir up a part of me that I have rejected out of shame. Either a part I have tried to lock down and starve, or have painted over with a self-image. The felt compulsion is being torn between withdrawing and courting damnation by baring it all, these reactive extremes making it obvious that we're drawing close to a problem within me.
In cases where the other person actually is crossing a boundary, ironically I feel disinterested instead of invaded. It's easier in this situation to do something moderate: just decline to give the next detail and move on with the conversation. People are typically okay with that if it's not done to excess.