have a screw loose
📖 generalMeaning
to exhibit eccentric or irrational behavior
Literal Meaning
to be missing a fastening device in machinery
Example
“He must have a screw loose if he thinks that's a good idea.”