I don't think it is that crazy for Pelosi. Trump's current term expires January 20, 2021. If the election is contested and tied up in the courts, neither Trump and Pence are no longer in office. According to the Constitution, the House Speaker then assumes the duty of President until the impasse is resolved.

Am I wrong here?