But how does Ryan get there? Trump gets impeached, Pence appoints Ryan VP and then dies or resigns for health reasons? (No, I don't see Pence breaking the law to justify an impeachment. Pence is a political HP, but he's not dumb).
Simpler: Trump has Pence over for a lunch, but the White House chef poisons them, and they drop dead. Ryan takes over as prez, since he's Speaker of the House.
Or alternatively, FBI Director Joe Lieberman becomes dissatisfied with Trump's foreign policy, and decides to blackmail both Trump and Pence out of running again with doctored photos of a love affair between them.