Lose (one's) buttons verb phrase
To be mentally deficient or incompetent; to become of mental health disorders
My wife started losing her buttons after menopause.
I have stayed up all night to accomplish the report, so I am losing my buttons.
If someone is not right in the head, he or she doesn't have a normal mental state or condition.
To become stupid, foolish, silly or crazy
To lose mental control; to become very anxious, upset, or afraid
Unstable, mentally unbalanced state.
To be unintelligent or mentally deranged.
The verb "lose" should be conjugated according to its tense.
This idiom is often used to express that you should accept an unpleasant situation or event because you cannot change it.
I have some troubles with my projects recently, but I know these things are sent to try us.