Not to worry. We will be dead about 3/4 of a billion light years before that happens.
Excluding planetary engineering, by the time the two galaxies collide the surface of the Earth will have already become far too hot for liquid water to exist, ending all terrestrial life; that is currently...