SO I had the same error before the game launches, worked on it for several hours to troubleshoot, it works now but that does not guarantee it will keep working
anyhow here are some of the steps you can take
1. Clear the game caches. https://help.ea.com/en-tr/help/faq/clear-cache-to-fix-problems-with-your-games/
2. Clean Boot. https://support.microsoft.com/en-us/help/929135/how-to-perform-a-clean-boot-in-windows
3. Re install Origin.
4. Re install The game
5. Check your gpu driver- re install if its needed.
6. For double graphic carded laptops-pcs
These steps will vary from computer to computer, but the following is a good guide for how to get this done.
a. Right click on your desktop and select Graphics Properties. This will open the Intel Graphics and Media Control Panel.
b. Click on the 3D tab and set your 3D preference to Performance. Click Apply.
c. Now select the Power tab and set the Power Plans to Maximum Performance. If you sometimes perform with your laptop only running on battery, then select battery in the top right corner and also set it for Maximum Performance. Click Apply.
d. Close the Intel Graphics Control Panel and right click on the desktop again. This time select the control panel for your dedicated GPU
e. For NVIDIA cards, click on Adjust Image Settings with Preview, select Use my preference emphasizing: Performance and click Apply.
f. Click on Manage 3D Settings and open the drop down menu for Global Settings. Select the High-performance NVIDIA processor as your preferred graphics processor and click Apply.
g. Open the drop down menu for Program Settings and click Add. Search for the Apex Legends ( C:/Program Files(x86) / Origin games/Apex Legends /.exe file and double click to select it. Open the drop down menu in step 2. and select the High-performance NVIDIA processor as the preferred graphics processor for this program and click Apply.
h. Click on Set PhysX configuration, open the drop down menu and select your NVIDIA card (the name is dependent on your exact card) as the PhysX processor. Click Apply and you are done. Re-start your computer and launch Apex Legends for a test.
7. Check your windows updates.
And that is about it, one or couple or all of these steps may help you.
This was gathered with my own trouble shooting and 2 EA Tech guys.
Hope it helps.
Best of luck and have fun!