I believe this error is due to a missing / corrupted DirectX installation. Please try re-installing DirectX from this location; https://www.microsoft.com/en-us/Download/confirmation.aspx?id=35/My Balance Now
If this does not resolve the issue and allow you to play the game, you can also try this DirectX Dependency Fixer; https://obsproject.com/forum/resources/directx-dependency-fixer-dxfix.87/
If neither of these work for you, please let me know!
Regards,