It seems like dkms
packages can’t be complied with using the newer GCC
compiler. On the second page there is a workaround to get this working.
This is the workaround that’s working at the moment.
Downgrading gcc and gcc-libs to 13.2.1, then re-installing the current 6.8.9-arch1-2 of linux and linux-headers worked for me.
You can use,
pacman -U <Older software name>
to downgrade.