I assume this is a problem originating from a Steam Deck? If so, try installing Protontricks on the Desktop side, then install the various DirectX libraries into the game that way. Worked for me.