Problem being, that at that point stallwarning Nr. 2 communicated approaching loss of control, which was honored by PF by selecting TOGA, a fatal failure.
A drastic maneuver would have been to unload to at least 0.5g to reduce the pitch faster, thus conserving more energy and gaining less altitude, hereby avoiding SW 2 and thus no TOGA with its negative side effect.
The aircraft ran out of speed before the climb was stopped.