Question DirectX Error causing crashes

Mar 2, 2019

I recently bought a whole new PC, and brought some old parts (SSD/HDD) from my old pc.
In the last week or so, i've been getting crashes in multiple games, mainly Apex Legends and League of Legends.

2 diffrent types of "crashes" happens.
  1. (DXGI_ERROR_DEVICE_REMOVED ("The video card has been physically removed from the system, or a drive upgrade for the video card has occured.") When playing Apex Legends.
  2. Screen freezes, sound continues to run, and sometimes chrome and other programs are experiencing hard lags for 10 seconds or so, where i cant move my mouse or anything.
What i have tried so far:
  1. Removed GPU and cleaned it of dust.
  2. Reinstalled old Nvidia drivers.
  3. Updated all drivers.
  4. Deleted Realtek HD Audio Driver.
  5. Changed value of TdrLevel from "3" to "0" in regedit.
  6. Cleaned pc from unwanted programs.
  7. Installed latest Windows Update.
  8. Changed Windows Power Plan.
Nothing have worked so far...
So if you might have a solution to my problems, please be so kind to give me something to work with. Im willing to try everything... Almost everything.

My PC:
Windows 10 Home: 1809
Intel Core i7-9700K 3.60GHz
32 Gb RAM 3000Mhz
Asus Prime Z370-P II
MSI GeForce RTX 2070 Aero OC 8Gb
500GB Samsung SSD
2TB Seagate HDD
2 x 27 Inch 144hz monitors with freesync