If the numbers do not match, you have a mismatch.
Then manually add rules one by one using pfctl -a to find the offending line. pf configuration incompatible with pf program version
The incompatibility is almost always . Either update your config file to match the running system’s pfctl + kernel, or align your PF userland with the kernel version. Resolving the "pf Configuration Incompatible with pf Program