@Despop919 Does the same thing happen if you try starting a new save? If so, please move your entire Sims 3 user data folder out of Documents\Electronic Arts and onto your desktop, launch the game to create a new folder, and see whether you get the same error. If it's still present, please run a dxdiag and attach it to a post.
https://help.ea.com/en-us/help/pc/how-to-gather-dxdiag-information/
If the error disappears, you'll know that the issue is either your save or something in your user data folder, and we can go from there.