Here's a quote that's worth repeating, from Antifederalist No. 70:
“Let us suppose this man to be a favorite with his army, and that they are unwilling to part with their beloved commander in chief … and we have only to suppose one thing more, that this man is without the virtue, the moderation and love of liberty which possessed the mind of our late general [Washington] — and this country will be involved at once in war and tyranny.
... We may also suppose, without trespassing upon the bounds of probability, that this man may not have the means of supporting, in private life, the dignity of his former station; that like Caesar, he may be at once ambitious and poor, and deeply involved in debt. Such a man would die a thousand deaths rather than sink from the heights of splendor and power, into obscurity and wretchedness.”
Luckily, at this moment it seems that the military is in the hands of staunchly professional and nonpartisan officers, and there have been no rumblings of discontent- or any that are about have been kept well under wraps. The military are as sensitive to their professional pride as anyone, and having been called "chumps" and "losers" by their own Commander in Chief likely militated against whatever normally conservative tendencies are supposedly the norm in the ranks. I have read (but can't find the link to) a poll watcher being suspicious because a large proportion of military ballots came in for Biden, which went against their expectations... well, perhaps that indicated a trend.
It certainly must be a factor in Trump's refusal to give up his office that he would thereby lose the President's traditional immunity to federal prosecution. There's also the matter of the reported hundreds of millions of dollars in loans which are guaranteed by nothing more than his word, and which will be coming due soon. It's hard to see what Trump might have hoped for regarding these loans had he continued in office, but we have a hint in the fact that the Justice Department tried to act as his personal lawyer in E. Jean Carroll's lawsuit against him. He may have planned in some unfocused way that something similar would happen with DOJ defending him against foreign creditors, or that he could get the State Department to strongarm their governments into renegotiating the loans; much the same way that he attempted to pressure the government of Ukraine to dig up dirt on his political opponent.
As his sister Mary writes, Trump "has never been in a situation he can't fix with power, influence, or someone else's money. And now he's a loser, which, in our grandfather's world, was the worst thing to be." Trump is flailing to find some way to label his loss as the theft of his rightful victory. Except among his diehard supporters, he is doomed to eventual failure.