expression

To lose one's marbles.

Theme: judgment Keyword: head

means

To begin to behave irrationally or seem confused (informal, humorous and potentially unkind).

Example

I thought I'd lost my marbles when I found the kettle in the fridge.