Lose one's marbles
Lose one's marbles
To become mentally unstable, confused, or irrational; to lose one's ability to think clearly and logically.
I think my uncle has lost his marbles; he keeps talking to imaginary friends and forgetting where he put things.