There is a documented problem that can affect people who play Apex Legends that causes crashes outside of the game.
If it isn't Apex Legends causing it, I would:
- Use DDU to uninstall GPU drivers, restart and reinstall drivers.
- I would try different drivers if you were not already on 22.5.1 which is the recommended driver version.
- Update BIOS
- Update Chipset Drivers
- Run Command Prompt in Administrative mode and run SFC /SCANNOW to check your file system for issues.
- Run Windows Memory Diagnostics. This can take hours.
- Run Command Prompt in Administrative mode and run CHKDSK /R /F This requires a restart and takes a while depending on your storage.
It also could be your power supply since the 6800 XT recommends an 850W PSU. Here is the APEX Legends thread Weird issue with crashing apex legends - AMD Community
Ryzen 7 7700X, MSI MAG X670E Tomahawk Wifi, Corsair DOMINATOR® TITANIUM RGB 2x16GB DDR5 DRAM 6000MT/s CL30, Sapphire Pulse AMD Radeon RX 7900 XTX, Corsair HX Series™ HX1000, Corsair MP600 PRO NH 4TB