in that scenario, pelosi would also be beyond the term for which she had been elected, thus no longer a member of the house, thus no longer speaker, thus not in the chain of succession. a cabinet member next? they’re not elected for a specific term.
…a totally looney toons situation.