

Does your CPU has integrated graphics? You can remove your GPU and then you test if the error still occurs to find out if your GPU has damage. You can also test a live system, to exclude issues in your OS or driver configuration
Which OS and GPU do you have in use?
Maybe you have to install the proprietary driver including the OpenCL stack. See https://amdgpu-install.readthedocs.io/en/latest/install-installing.html