Please see Please Read This First: Guidelines and Suggestions for posting LAMMPS questions about how to properly quote input files and other text in the forum.
Your quoted input file is very hard to read because you didn’t follow the suggestion.
There doesn’t seem to be anything that prevents atoms from leaving the box. What happens if you change this to:
boundary p p m
and then visualize to see if any atoms get detached from your system.