this holds with the ancient legends that an near-orbit or near-miss object so affected earth’s magnetism that the magnetic poles were switched
some of the wildest ancient stories talk about the earth’s rotation even being reversed. Interesting to speculate
The magnetic poles switch about every 300,000 years. On either side of the mid atlanic ridge there are perfect bands of rock with opposite magnetic poles.