Question EZ Debug LED

Dec 1, 2019
1
0
10
I built my pc about 2 weeks ago and it runs YouTube and minor stuff well, but when I try to run Apex Legends my pc freezes and in the board the CPU's debug LED is red. I can't do anything except force it to shut down. Sometimes it even freezes or crashes randomly. Still the same problem. My cpu is the Ryzen 7 2700X. Board is the MSI MPG x570 gaming edge wifi. Everything works except games that are a little demanding.