。
She was beside herself with grief.
Literal
Sorrow [possessive-の] excess mind was-agitated.
気が動転していた means 'the mind was agitated/disturbed.' ~のあまり ('out of an excess of') marks the overwhelming emotion as the cause: 悲しみのあまり = 'overcome with grief.' 動転 (どうてん) means 'agitation, confusion' — a Sino-Japanese compound carrying a literary, intense flavor.