klilyona Yes, you did this correctly. And your dxdiag lists a pile of crashes of one of the graphics drivers. It's impossible to say which one from this information, and the driver for the iGPU is old anyway, so it would be best to do a clean uninstall and reinstall of both drivers. Here's how:
https://crinrict.com/blog/2019/02/clean-re-install-of-graphics-drivers-with-display-driver-uninstaller-ddu.html
Use the newest drivers HP provides for your laptop. Go here:
https://support.hp.com/us-en/drivers/laptops
Enter your serial number, choose your OS (just Windows 11 is fine) if prompted, click All Drivers, expand Driver-Graphics, and download the newest AMD and Nvidia drivers by version number. The first number matters most, e.g. 32 is newer than 31; after that, the last four numbers matter.
The proper order of operations is uninstall the Nvidia driver > uninstall the AMD driver > restart > reinstall the AMD driver > restart > reinstall the Nvidia driver > restart, all while your computer is offline.
If this doesn't help, please post a new dxdiag, after the next crash. Please also look for new errors in the Reliability Monitor. Hit Windows key-R and enter "perfmon /rel" without quotes, and you'll see a chart of errors and updates with a column for each day. Today is on the right.
Look for an error that happened at exactly the time of your most recent Sims 4 crash, specifically after uninstalling and reinstalling the graphics drivers. If you find one, double-click it to see more details, then copy that info and paste it into a reply here. If you don't see a new error, check back in an hour or so—the Reliability Monitor doesn't always update right away.