The word "whip" here is a metaphor for any kind of disaster. Alternate translation: "When a disaster suddenly happens and people die" (See: [[rc://en/ta/man/jit/figs-metaphor]])
The word "despair" is an abstract noun that can be translated by the verb "despair." Here it is a metonym for the innocent who are despairing. Alternate translation: "the innocent who are despairing" or "the innocent who have lost all hope" (See: [[rc://en/ta/man/jit/figs-metonymy]])