Also make sure to use the correct device raspberrypicm4-ioboard when building the module as the latest OS for raspberrypi4-64 is on a newer kernel and will not be compatible.
There’s a similar question here in case some of your module build issues have already been answered: