If anything, he will stay in office at least through the convention. It’s too complicated and ugly to choose another nominee at the convention.After the convention, the top party officials can pretty much replace Joe with whoever they chose. I think he will resign after the election if he steps aside or loses. Then Harris will pardon the Biden clan for everything.
In the meantime Hunter is sitting in on meetings in the White House so he can claim executive privilege on all his foreign business dealings.