lose the plot

verb
RareNot in standard dictionaries
1

To cease to behave in a consistent or rational manner.

2

To lose sight of an important objective or principle; to act contrarily to one's own interests through concentrating on relatively unimportant matters.

3

Used other than figuratively or idiomatically: see lose, plot.

#colloquial