Green’s Dictionary of Slang

headcase n.

[SE head + case n.1 (2d)]
[1950s+]

1. an eccentric, bizarre person.

2. someone undergoing, or in need of, psychiatric treatment.

3. a violent person, a psychotic.

4. a state of psychosis.

5. a clever person, or one who believes themselves to be so.