first I want to tell you that this error is occurs due to missing files of directx.
when you are installing your game you forgot to install the directx features or sometimes
the files are corrupted.
so to fix these errors you need to update your dirctx or reinstall that.
after doing this you can able to play your games again you don't have need to reinstall you game again.
if you still have any problem feel free to contact me. :)
I am also providing the link for video support https://youtu.be/c-9ZxFpoh70