The argument is sound given a few oft-omitted (but not too unreasonable) assumptions. Here is one way it can be formulated.
Consider a volume $V$. Suppose it has a (possibly infinite) set of possible configurations; call this set of states $S$. Suppose we are interested in a particular configuration, $c \in S$, to within a certain tolerance. Let $C \subseteq S$ be the set of all states close enough to $c$ to count for our purposes.
Assumption 1: There is a probability measure $\mu$ on $S$ corresponding to the probability of $V$ manifesting in a particular state in some selection process I'm intentionally being vague about.
Assumption 2: $\mu(C) > 0$. That is, there is a strictly positive chance of a "randomly" (again, being vague) selected state matching our desired configuration.
Assumption 3: There exists a "horizon distance" $d$ such that if two volumes are more than $d$ apart, their states are entirely independent.
Assumption 4: The universe is infinite.
Assumption 5: The universe is homogeneous. In particular, $S$ and $\mu$ are the same for any $V$ chosen.
(1) means we can meaningfully talk about the chances a state $s_i$ manifests in a volume $V_i$. (2) and (5) tell us that for any $V_i$, $P(s_i \in C)$ is a constant, positive number. If we define the indicator variable
$$ \chi_i =
\begin{cases}
1, & s_i \in C \\
0, & s_i \not\in C,
\end{cases}$$
then the expectation of indicator, $\langle \chi_i \rangle$, is this same positive number. (3) and (4) together mean there are infinitely many uncorrelated volumes $V_i$ in the universe (in addition to possibly many other volumes correlated with these) to choose from. If $I$ indexes finitely many mutually uncorrelated $V_i$, then we can see $\langle \sum_{i\in I} \chi_i \rangle$ can be made arbitrarily large by augmenting $I$.
Of course, no one is asserting the claim "there are infinitely many copies of you in existence" as fact, because these assumptions can always be questioned, some in important ways.
(2) seems justified based on your existence, and (5) is a common assumption about the universe.1 But (1) really calls for more than a little bit of philosophy, and (3) and (5) together worried enough cosmologists in another context that they came up with inflation to essentially rid themselves of (3). And of course (4) is certainly not known, and strict scientific positivism would say that sentence isn't even deserving of being called science, for it is fundamentally untestable.
1 I find the history of 20th century cosmology interesting, in that homogeneity was assumed/hoped for before it was validated observationally. After all, most of the universe doesn't look like Earth, or the Solar System, or the Milky Way, or the Local Group, etc. Only with really big galaxy surveys did we see an end to the hierarchical structure.