yanyiz This is not an error I've seen before, as far as I can tell, at least in the context of a game crash. Are you still playing without any mods or custom content? If not, please remove the Mods folder again and see what kind of crash you get, if any.
If this happened with no mods or cc present, please close the EA App, open the Task Manager, and make sure the EABackgroundService is NOT in the background processes list. Then go here:
C:\Program Files\EA Games\The Sims 4\Game\Bin
and delete the Python folder inside. Then clear the EA App's cache:
https://help.ea.com/en-us/help/faq/clear-cache-to-fix-problems-with-your-games/
and repair the game (Sims 4 > Manage > Repair). The idea is that the faulting module is located in this folder, so you're deleting the folder and telling the EA App to download a fresh copy.