All that the theory that there is another you somewhere out there if space is infinite says is that if space is infinite, there is a probability that in some distant part of the universe, evolution has occurred in the exact same way, down to the last molecule, to produce an exact copy of you.
It doesn't mean that that other being
is you, it just means that you have some twin out there that looks, behaves, and feels exactly like you do. This is not some scientific phenomenon, but just an exercise in probability. Basically, in an infinite probability space, all possible outcomes must occur over a sufficiently large area or length of time.
So if you die, you die, it's not as if you exist somewhere else. Another copy of you exists somewhere else, but you, as yourself, cease to exist. Your argument is like saying that if one twin in a identical pair dies, he or she isn't really dead because the other twin is still alive.