@blooobagooo Your user folder shouldn't be in OneDrive under normal circumstances, and that can interfere with Sims 3 in a variety of ways. It's probably not causing this particular error, but it might be complicating the issue if you're deleting files from the "wrong" folder, as in, not the one the game is reading.
Please open C:\Users\your username\Documents etc. without OneDrive in the file path; you can get there by clicking This PC in the left panel of a File Explorer window. If you find a Sims 3 folder, delete the cache files there too, and also compare the modified date on deviceconfig.log with the modified date of the same file in the OneDrive folder. If the two have different timestamps, let me know which one corresponds to the last time you launched the game, as in, exactly when it started to load. That's the Sims 3 folder the game is reading and the one you want to work with.
For mods, I'd recommend adding at least NRaas ErrorTrap, Overwatch, and MasterController. Others can be very useful too, but these are the ones needed to address your current issue. ET and OW clean up stray data and corruption and work on their own, with no user input needed; MC doesn't do anything unless you issue it a command. You can find more info and a link explaining how to install mods here:
https://answers.ea.com/t5/Technical-Issues-PC/Sims-3-Common-Game-Fixing-Mods-Hero-Approved/m-p/9838855#M244208
Work with your oldest save, in this case the backup you restored but not the modified version where you evicted your sim and moved her to a new apartment. Load the save and let the game clock run for a few sim-minutes, then click on City Hall and select:
NRaas > MasterController > Town Options > Reset Everything
This can take a few minutes to run depending on the speed of your hardware. When it's done, it'll tell you, and from there, let the game clock run for a few more sim-minutes, then "save as" to rename the save, quit, delete the cache files, reload, and see how things are.