I think you are asking to solve an error, when your original problem is really different. There are some veikk drivers in AUR. Install them with:
pamac build input-veikk-dkms
I’m quite sure you don’t need UEFI to compile some drivers. There something odd there.