Based on current calculations they predict a 50% chance that in a merged galaxy, the Solar System will be swept out three times farther from the galactic core than its current distance. They also predict a 12% chance that the Solar System will be ejected from the new galaxy sometime during the collision. Such an event would have no adverse effect on the system and the chances of any sort of disturbance to the Sun or planets themselves may be remote.
There are actually a bunch of stars that will pass by very close to the solar system in the far future (tens of thousands of years) and they could possibly increase the number of asteroid and comet impacts drastically.
Can’t it mess up our nice solar system if other large objects come even remotely close?
https://en.m.wikipedia.org/wiki/Andromeda–Milky_Way_collision#Fate_of_the_Solar_System
There are actually a bunch of stars that will pass by very close to the solar system in the far future (tens of thousands of years) and they could possibly increase the number of asteroid and comet impacts drastically.