The expression "wast beside oneself" is an archaic way of saying "you were extremely upset." In modern English, we would say "you were beside yourself with anger/sadness/etc." The word "wast" is an old form of the verb "were" (second person singular past tense) and is pronounced as /wɑːst/. "Beside oneself" is pronounced as /bɪˈsaɪd wʌnˈsɛlf/, indicating that "beside" is stressed and the two words are pronounced separately.