She [topic-は] anxiety [with-で] spirit [even-も] go-crazy [to the extent of-ばかり] was.
気も狂わんばかり — 狂わん is a literary contraction of 狂わぬ (classical negative of 狂う). ばかり here means 'to the extent of, almost.' An intensely dramatic expression of overwhelming anxiety.