The problem with your #2 scenario is that the whole general election might be declared invalid by Trump, but he can't invalidate House elections. That's up to the states to do. So unless the California Secretary of State invalidates Pelosi's election (which won't happen), she'll be Speaker, and she'll become President.
Oh, and Congress is seated in January 3rd, I believe, not the same day as the President.