You have a broken/unsupported DKMS installed that breaks the header installation. Please remove it:
$ dkms remove amdgpu/6.2.4-1652687.22.04
You have a broken/unsupported DKMS installed that breaks the header installation. Please remove it:
$ dkms remove amdgpu/ 6.2.4-1652687. 22.04