Currently, AbuseFilter only supports one size of range block: a /16 range.
This should be modified as described in the parent task. Specifically, AbuseFilter should compare the range it intends to block against $wgBlockCIDRLimit['IPv4'] or $wgBlockCIDRLimit['IPv6'], whichever applies, to ensure it is not trying to block a range wider than that limit.