lapse in judgment
Definitions
A temporary failure to make a wise or correct decision.
A brief moment of poor reasoning or lack of careful consideration.
Examples
It was a momentary lapse in judgment that led him to send the unprofessional email.
The company's security breach was attributed to a single lapse in judgment by an employee who left their terminal unlocked.