I posted this a few times but here it is again.

99% of the directx errors are caused by the audio driver usually the cause is a windows update that seems to bork sound driver only for ffxiv.

So what you need to do is uninstall you sound driver ideally clear out registry keys as well to do a clean install of your driver.

I hope you find this useful