First off, please read the forum guidelines Please Read This First: Guidelines and Suggestions for posting LAMMPS questions and pay particular attention to selecting the correct forum category. You posted to the wrong one.
To solve your problem, you need to recompile LAMMPS with the “bigbig” integer settings 3.5. Optional build settings — LAMMPS documentation. This chooses are 64-bit integer for image flags and thus you can have 21 bits for storing image flags instead of the 10 with 32-bit integers.