Fugue: Loss of awareness of one’s identity, often with hysteria.
“After the accident he was in a fugue that required sedation.”