A better system for orbit validation:
I believe that the game just runs the system for a long time to check if an encounter can occur
Instead, the sphere of influence can be pulled across the orbit to form a "donut" shape, if two or more of these "donuts" intersect then the planets have a chance to encounter each other.
If this is already used in the game then it is very slow (potato pc)