irresistible impulse

nouns

an urge to do or say something that might be better left undone or unsaid
"he felt a compulsion to babble on about the accident"