It is a Fixed event, you can not avoid it. It usually happen on Day 30.
If you don't care about Annalie or Shanice and PriestBot, you can just sleep through the riot for 5 days and the riot will stop.