I built a kernel module but cannot load it: exec format error

The kernel version you’re running and the kernel version you built your module against do not match.
You need to build the module against the same kernel version you’re running.