Lose the plot

Meaning: To become confused, irrational or unable to understand what is happening; especially common in British English.

Example: The discussion became so complicated that I think everyone lost the plot.