Wiktionary
off one's trolley
a. (context informal humorous idiomatic English) Having gone mad; insane.