Error 0x887a0006 and 0x887a0005: a graphics card failure
These are DirectX errors. 0x887a0006 (DXGI_ERROR_DEVICE_HUNG) means the graphics card hung and Windows reset it. 0x887a0005 (DXGI_ERROR_DEVICE_REMOVED) means the driver crashed or updated in the middle of the game. Mods almost never have anything to do with it.
What to do
- Update your graphics card driver from the NVIDIA, AMD or Intel website. Preferably with a "clean installation". Restart your computer.
- Lower the load: in the game, go to Game Options → Graphics, lower the quality and turn on the frame rate limit. The graphics card will run cooler.
- If your graphics card was overclocked (MSI Afterburner and similar programs), go back to the normal clock speeds.
- Check for overheating: clean the dust out of your computer. Keep a laptop on a hard surface and plugged in.
- On a laptop with two graphics cards, check that the game runs on the powerful one (Windows graphics settings or the NVIDIA/AMD control panel).
- Close programs with overlays and screen recorders.
If the crashes started after you installed a lot of CC with high-resolution textures, your graphics card may be running out of memory. Try removing the heavy CC for a while and see whether it gets better.
How the app helps
Sims 4 Mod Doctor explains these codes and other errors for free. The "What's slowing things down" section shows which mods and CC put the most load on the game.