If the video card crashes, an option is to just restart the graphics modules.
sudo cat /sys/kernel/debug/dri/N/amdgpu_gpu_recover
Start your system with amdgpu.gpu_recovery=1 kernel parameter to automatically reset it on a crash.
NOTE: Using the gpu_recovery kernel parameter, allows you to save your work even if it is not visible, and then reboot.