download and run OCCT CPU, GPU, and PSU tests to see if your GPU is overheating and crashing.
When you run the tests keep an eye on Temperatures, Fan Speeds, and PSU Outputs (3.3/5.0/12.0 Vdc).
It is possible your GPU card might be overheating and crashing. Make sure the GPU fans are running maximum.
Could also be a PSU going bad and not providing proper output voltages to the GPU card.
Note: the Maximum Operating Temperature of the RX 570 according to this website: