Mess with (one's) head American informal verb phrase
To cause someone to feel confused, worried, or upset
What she said messed with my head.
The government has just introduced a policy that is messing with the residents' heads.
be confused about what to do
To be very anxious
Being so scared, confused, and astonished that you can't think or do anything.
Unsure or confused.
To feel that unpleasant or dangerous things likely happen to you
The verb "mess" should be conjugated according to its tense.