beside oneself
Possibly derived from Ancient Greek παράνοια (paránoia, “madness”), from παράνοος (paránoos, “demented”), from παρά (pará, “beyond, beside”) + νόος (nóos, “mind, spirit”), with "beside mind" evolving into "beside oneself".