Or else he was told by Comey and Brennan to take one for the team and President Biden would pardon him to keep him from testifying in court. With the alternative being an Epstein-level case of depression while waiting for trial.
If that were the case, there would not be a plea deal. A plea deal pretty much assumes cooperation by the person making the deal.
But, this is uncharted waters. We have not had a situation before, where the coup failed.
I count Watergate as a successful Media coup.