She went mad from grief.

Literal

Sorrow [possessive-の] excess she [topic-は] mind went-crazy.

~のあまり means 'from the excess of, out of too much.' 気が狂う is a vivid idiom meaning 'to go insane' — literally 'the spirit goes crazy.' A dramatic sentence about overwhelming grief.