I guess that at least one atom is out of the simulation box. Some visualization code automatically put the atoms inside the box. See the input file and find which atom has one or more coordinates larger then the box size along each direction and shift them back to the box by length of the box along the respective direction.
probably, you are trying to build a super cell if so :
I have faced this problem too, try to multiply the entry lattice parameters ( A, B, C ) in system card regarding the super cell you want to build. for instance, if you want to build a 2 * 2 * 3 super cell you need to multiply A, B and C by 2, 2 and 3 respectively.
by doing such changes you will have A cell instead of multiple cells besides each other. therefore, The Quantum espresso will have an integrated cell without any irregularity.