emmawks13 The main issue is that Sims 4 in DirectX 9 mode isn't compatible with your laptop's graphics chip and driver. DirectX 11 mode should work. However, since the driver is a bit old, and a component of your sound driver is also crashing, it would be best to try to update both. 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 Intel driver by version number. The first number matters most, e.g. 32 is newer than 31; after that, the last four numbers matter. Do the same with the audio or sound driver; I'm not sure how the site will list it. Restart your laptop after installing the drivers and before doing anything else.
If you're not sure what you're looking at, feel free to link the download page. It doesn't contain any personal information, only drivers for the overall model.
If you install the new drivers and the game still crashes, switch to DX11 mode, as described here:
DirectX 11 (DX11) for The Sims 4 - A Step-by-Step Guide | EA Forums - 11811172