He wasn’t threatened with 25th amendment. That process takes too long. The Cabinet must convene a meeting and take a vote . The President needs to be provided in writing with their demand for him to step down. The President has 30 days to respond in writing if he chooses not to resign. The cabinet then notifies the Speaker of the House. Hearings must be held by the House in regards. Then the House must vote to approve or deny the Cabinets demand.
Good luck with all that happening in time to put another name on the ballot.
imgflip.com/i/8xsfcq