tools/testing/nvdimm: stricter bounds checking for error injection commands