If your game crashes on your PC while playing Battlefield 2042 and you encounter a DirectX error, don't worry this bug is affecting many players. Fortunately, this tutorial will guide you on how to resolve the issue.
Steps to fix the DirectX error on Battlefield 2042
Run CMD: SFC /scannow: Checks and fixes corrupted system files.
Update GPU Drivers
Re-install windows
Update your PC bios, There has been a report 13th and 14th gen Intel CPUs, Have issues with DX12 Games
Reinstall Battlefield 2042