Hi Ada,
Your system might be defaulting to the integrated graphics rather than your NVIDIA GeForce RTX 4060, which can trigger Direct3D errors like 0x887a0005.
I recommend forcing the game to use your dedicated NVIDIA GPU. To do this, open the Windows Settings app, navigate to System then Display, and scroll down to Graphics Settings. Add your game to the list if it isn’t already there, click Options, and select the High Performance option, which should assign the NVIDIA GPU to the game. After saving, restart your game to see if the error is resolved.