You missed a step. If Harris becomes President, and no Nominee is Confirmed for VP, then Pelosi will continue to be Speaker and the VP Slot will remain unfilled. Harris would have to be removed from being President for the Speaker to ascend to the Presidency.
100% correct. The Speaker
remains Speaker until the Presidential seat becomes empty, and the Speaker becomes President
immediately if there is no sitting Veep.