I think it’s simpler than that.Trump's outbursts can only have one logic. He has to be gambling that he has to fight and act out to maintain support from his voters in order to win the election, regardless of whether it hurts his case. His gamble is that he will win re-election, and then he can make it all go away. He has to have concluded that he can't win the cases, so his only play is to be belligerent, possibly be punished for it, and then use that to maintain support.
If you're going to jail Trump, it needs to be for at least two weeks.Rolling Stone had a story that says the Trump legal strategy today is to provoke the judge into an outburst in court that could give them a chance to win an appeal and/or make the judge throw him in jail overnight which they think will be a fund raising bonanza. It was anonymously sourced so who knows. After reading what he said, though, it does seem likely.