This is the topmost page of google results for 'mod_sysfs_setup insmod'. I've faced the same problem on another distro. I recommend to do the following: backup upstream .config file, run 'make prepare' inside kernel headers dir (/usr/src/linux-headers-...), compare two config files. Probably, some config options will change. Some options affects structure module (https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/module.h?h=linux-6.1.y#n363). If that happens, you will get loading error.
In my case I had kernel compiled on host with pahole tool installed. And I built my modules on host without pahole tool installed.