Can't get past Warning re unexpected ending in last session

First, cut and paste your community folder somewhere outside of the sim file structure for safekeeping.
Next, from the Apps and Features menu of Windows, uninstall the sim.
After that, remove any leftover files that may have been in the sim structure and were not deleted.
Next, from The Window’s Apps and Features menu, advanced features, reset the following apps:
Gaming Services, Microsoft Store, and Xbox.
Ensure MSStore has all updates done, as well as your Windows program itself.

Reboot PC.
Make sure you are signed into the Xbox app and MSStore with the same account.

Try to install sim.