Simply follow the below-given fixes to get rid of DirectX errors:
Fix 1: Rollback to the Previous DirectX Version
Fix 2: Download Visual C++ Redistributables
Fix 3: Reinstall Graphic Card Drivers
Fix 4: Download the Missing .DLL Files
All the above-given fixes will allow you to overcome from DirectX errors.
Source:
http://www.pcerror-fix.com/fix-directx-error-windows10-creators-update