There is no way a sitting Democrat will vote against Pelosi and give the speakership to a Republican.
And I don't see them switching parties, either.
They don’t have to vote for a Republican. If the Republican’s and a handful of Democrats could agree on a centrist (yeah I know) then they could elect a Democrat that is easier to work with.