Anbox-modules-dkms crashing OS on multiple kernels

I opened an issue here: Can't compile anbox-dkms-modules on 5.4 kernel

thinking it was a specific kernel problem, but I tested GitHub - choff/anbox-modules: Anbox kernel modules on the 5.10 and 5.15 kernels with the same problem.

The package installs, but it throws some errors about binder.

and when running:

sudo modprobe -a binder-linux

it crashes the OS. I am unable to reboot and certain menus freeze(like log out).

Any suggestions to debug?

In my previous comment, I explained how to build anbox from a working commit from AUR here:

But now I have run into a bug that is causing the dkms modules to not compile.

Error output:

Install DKMS modules                                                                                                           [4/5]
==> dkms install --no-depmod anbox-modules-ashmem/r1358.84f0268 -k 5.4.163-1-MANJARO
==> dkms install --no-depmod anbox-modules-binder/r1358.84f0268 -k 5.4.163-1-MANJARO
Error! Bad return status for module build on kernel: 5.4.163-1-MANJARO (x86_64)
Consult /var/lib/dkms/anbox-modules-binder/r1358.84f0268/build/make.log for more information.
==> WARNING: `dkms install --no-depmod anbox-modules-binder/r1358.84f0268 -k 5.4.163-1-MANJARO' exited 10
==> depmod 5.4.163-1-MANJARO
Updating the desktop file MIME type cache...                                                                                   [5/5]
Transaction successfully finished.

ashmem installs on 5.4 but binder no longer installs.

As for anbox on the 5.10 stable kernel, there is a bug documented here: Compile fixes for kernel 5.15.2 by modscleo4 · Pull Request #1 · choff/anbox-modules · GitHub

Any suggestions for a fix?