Sorry to reopen this issue.
I was wondering if by “box length” in your response you meant “half box length”. Because as long as atom A sees both atoms B and image of B this issue happens.
Has there been any modifications regarding this issue in development versions of lammps? Maybe a warning could be added for this until the issue is resolved.