To be beside one's self

to be out of one's wits or senses.

See also: Beside