AMD GPU driver crashing

Hi, I have a EPYC 4585PX CPU with integrated GPU and I’m struggling to get it consistently working. Sometimes it works, sometimes it doesn’t and dmesg shows:

[drm:amdgpu_ring_test_helper [amdgpu]] *ERROR* ring vcn_dec_0 test failed (-110)
[239476.943080] [drm:amdgpu_device_ip_resume_phase2 [amdgpu]] *ERROR* resume of IP block <vcn_v3_0> failed -110
[239476.943286] amdgpu 0000:0f:00.0: amdgpu: GPU reset(1) failed
[239476.943383] amdgpu 0000:0f:00.0: amdgpu: GPU reset end with ret = -110
[239476.943388] amdgpu 0000:0f:00.0: amdgpu: GPU Recovery Failed: -110
[239487.064432] amdgpu 0000:0f:00.0: amdgpu: Dumping IP State
[239487.071029] amdgpu 0000:0f:00.0: amdgpu: Dumping IP State Completed
[239487.071038] amdgpu 0000:0f:00.0: amdgpu: ring vcn_dec_0 timeout, signaled seq=1849982, emitted seq=1849982
[239487.071142] amdgpu 0000:0f:00.0: amdgpu: Process information: process ffmpeg pid 1263035 thread ffmpeg:cs0 pid 1263072
[239487.071219] amdgpu 0000:0f:00.0: amdgpu: GPU reset begin!
[239611.993278] Workqueue: amdgpu-reset-dev drm_sched_job_timedout [gpu_sched]
[239611.993299]  dm_suspend+0xff/0x240 [amdgpu]
[239611.993519]  ? gmc_v10_0_set_clockgating_state+0x3a/0x90 [amdgpu]
[239611.993654]  amdgpu_device_ip_suspend_phase1+0x6c/0xe0 [amdgpu]
[239611.993758]  amdgpu_device_ip_suspend+0x29/0x70 [amdgpu]
[239611.993874]  amdgpu_device_pre_asic_reset+0xf0/0x390 [amdgpu]
[239611.993989]  amdgpu_device_gpu_recover+0x34d/0xea0 [amdgpu]
[239611.994086]  amdgpu_job_timedout+0x1bc/0x580 [amdgpu]
[239732.826060]  amdgpu_vm_fini+0x129/0x550 [amdgpu]
[239732.826225]  amdgpu_driver_postclose_kms+0x19c/0x290 [amdgpu]
[239732.826710]  amdgpu_vm_fini+0x129/0x550 [amdgpu]
[239732.826821]  amdgpu_driver_postclose_kms+0x19c/0x290 [amdgpu]
[239732.827371] Workqueue: amdgpu-reset-dev drm_sched_job_timedout [gpu_sched]
[239732.827384]  dm_suspend+0xff/0x240 [amdgpu]
[239732.827549]  ? gmc_v10_0_set_clockgating_state+0x3a/0x90 [amdgpu]
[239732.827662]  amdgpu_device_ip_suspend_phase1+0x6c/0xe0 [amdgpu]
[239732.827761]  amdgpu_device_ip_suspend+0x29/0x70 [amdgpu]
[239732.827855]  amdgpu_device_pre_asic_reset+0xf0/0x390 [amdgpu]
[239732.827946]  amdgpu_device_gpu_recover+0x34d/0xea0 [amdgpu]
[239732.828052]  amdgpu_job_timedout+0x1bc/0x580 [amdgpu]

Is there anything I can do to fix the problem?