Hope this post can be helpful to you.
Right now, follow the instructions below to fix it.
Solution 1: Update DirectX
DirectX is a suite of components in Windows.

With it, heavy multimedia apps can interact with your video and audio cards.
Step 1: Typecheckin theSearchbar and then clickCheck for updates.
Step 2: When the new window pops up, click theCheck for updatesbutton from the right side.
![]()
Windows Update will start to see if there are any available updates.
After that, look to see if the D3DERR_NOTAVAILABLE error is resolved.
Step 1: Right-click theStartmenu and chooseDevice Managerto open it.

Step 2: ClickDisplay adaptersto expand it.
Right-opt for dedicated GPU that youre using and chooseUpdate driver.
Step 3: ChooseSearch automatically for updated driver software.
![]()
After the scan is completed, follow the prompts to search for the newest driver software available.
If there is any, it will be downloaded and installed on your setup.
After successfully updating your graphics driver, peek if the D3DERR_NOTAVAILABLE error is fixed.
Solution 3: Perform a Clean Boot
App conflicts are another common cause of the D3DERR_NOTAVAILABLE error.
Here are the steps on how to perform a clean boot.
Cant run a program or install an update?
you might perform a clean boot to find conflicting programs.
Learn how to clean boot Windows 10 from this post.
Step 1: Press theWinkey +Rkey together to open theRundialog box.
Next, inputmsconfigand pressEnterto open theSystem Configurationwindow.
Step 2: In theGeneraltab, checkSelective startup.
Then, uncheckLoad startup itemsand clickApply.
Step 3: Switch to theServicestab, checkHide all Microsoft servicesand click theDisable allbutton.
Step 4: Switch to theStartuptab and clickOpen Task Manager.
Step 5: Click each startup item and click theDisablebutton.
Step 6: reboot your rig.
Now, check to see if the D3DERR_NOTAVAILABLE error still occurs.
If yes, that means one of the Microsoft services is the conflict one.
Then you should probably reset or reinstall Windows 10 to resolve this problem.
Step 1: Open theSystem Configurationwindow again.
Step 2: In theGeneraltab, checkNormal startupand clickApply.
Step 3: Switch to theServicestab, uncheckHide all Microsoft servicesand click theEnable allbutton.
Step 4: Switch to theStartuptab and clickOpen Task Manager.
Step 5: see to it all the startup items are enabled as they were before the changes.
After that, your gear will be reverted to the normal state now.
Bottom Line
After reading this post, you should know how to fix D3DERR_NOTAVAILABLE.
If you are still troubled by this annoying issue, try the methods mentioned above.