Hypothetically, what if an ex-President loses it and starts spilling state secrets?

Brutal infringement of anti-state speech. Such is the treatment of actual whistleblowers under the current regime. See Manning, Snowden, Binney, etc.