I'd guess it was mainly despair over learning Cersei was even more monstrous than Joffrey, plus staying alive would leave him with the choice of either trying to have his own mother arrested and executed, or letting her get away with it which means he'd be effectively endorsing the mass murder.