If you have any mods move mods folder to the desktop. Delete localthumbcache.package file in the game folder. Delete also all folders with word "cache" in the name. The game will recreate it but without saved errors. Then fix the game in Origin Origin/Library - right-click on TS4 - option "Repair game" You have to wait until Origin will fix all packs, not only the base game. Now try to launch the game and check if this error disappeared.
If it will be work, copy and paste your mods and CC from old mods folder to the new one. First copy the scripts mods every time checking if the game is working properly. If you have a lot of CC try 50/50 method ( divide your CC into smaller batches for example 50 pieces in one subfolder and check these subfolders one by one)
If you don't have mods delete this file and folders also and fix the game in Origin