to summarise - normally, one cannot hope to take a binary kernel module install it in your current kernel and hope it 'just works'.
if that works, a lot of things such as module versions and various constraints imposed by the kernel matches that in the kernel module itself, i.e. that module is compiled specifically for that specific kernel itself !
DKMS do not solve this, DKMS only *helps you rebuild the (kernel) module *** from source *** *, (and install it optionally).
the idea is this, you have the *source* to your out of kernel source *kernel modules*, when you upgrade the kernel, e.g. such as an apt-upgrade etc, DKMS can be triggered to *rebuild the kernel module from source* (and install it) in the new kernel (binary) tree e.g. copy that into /lib/modules/{kernel version}/xxx
---
if the kernel module is part of the kernel source tree itself, it actually do not need DKMS. But that if the errors occurs after building that *kernel module* (i.e. driver) , then congrats - you found a 'bug' in the *kernel module (driver)*, and that is true even if it is out of kernel source as a DKMS build. i.e. the driver sources need to be patched to work in the new kernel.
i'd be kind of 'off topic' here, armbian is somewhat in the 'fast lane', 'bleeding edge'
https://www.debian.org/releases/
recently when we worked on Orange Pi Zero 3
we actually jumped right into bookworm, had there been something more 'bleeding edge' that may be it
and that we jumped into 6.6 kernel (as it is about the 1st kernel that has support for Orange Pi Zero 3 on allwinner H618 cpu, and that actually as development progress, it actually advanced to 6.7, 6.8 etc.
Today, I just installed Ubuntu jammy from Ubuntu, only to find that that is 6.5 !
and that even orange pi's 'official' image for Orange Pi Zero 3 gets 'left behind' at 6.1
I'd suggest to try upgrading to the 'latest' debian (bookworm?) image, it may take quite a bit of 'reinstall' though. And that everything is 'brand new', 'bleeding edge' there.
the python 3 version is 3.11, that in ubuntu jammy is 3.10 !
that said, there are bound to be some broken bones left around somewhere, it is 'under construction' (all the time)
oh some fun stuff, 6.8 is 9 days old, who knows that might be the new Armbian kernel
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/