I think that if Pelosi is elected by the House then it will signal the end of the American experiment with democracy. The constitution might provide that procedure but no one will respect the result.
Pelosi cannot be elected by the House. They must choose among the five candidates that received the most votes in the Electoral College.
The Constitution says:
The Person having the greatest Number of Votes shall be the President, if such Number be a Majority of the whole Number of Electors appointed; and if there be more than one who have such Majority, and have an equal Number of Votes, then the House of Representatives shall immediately chuse by Ballot one of them for President; and if no Person have a Majority, then from the five highest on the List the said House shall in like manner chuse the President. But in chusing the President, the Votes shall be taken by States, the Representation from each State having one Vote; A quorum for this Purpose shall consist of a Member or Members from two thirds of the States, and a Majority of all the States shall be necessary to a Choice.Right now by my count Republicans have a majority of the House seats in 27 States; the Democrats in 22; and one State is tied. It will be the next Congress that would do the voting, but right now if the voting were thrown to the House, I think it would favor Trump.
ML/NJ