Basically, the error you’re encountering is a sanity check to make sure that the number of residues for which the packing metrics are being calculated are the same as the number of residues in the pose. That you’re getting an error means that they’re not.
If I had to guess, I’d say that you either have two residues with the same PDB numbering (chain and index), or that it’s an insertion code issue. (You have two residues next to each other which only differ in insertion code.) It doesn’t look like the packing metric code is insertion code aware.