Related: How would our weather change in the event of a magnetic pole shift?
If the poles shift we will have to ride out the transition as best we can. I am not aware of any major extinction event being associated with prior pole shifts, but I could be wrong. You also have to consider when the poles shift the magnetic fields that induce the current magnetic anomolies will be different or missing so you wouldn't be able to depend your chosen location being safe.
So unless you want to live underground I don't believe there are areas where the local magnetic fields will protect you from cosmic radiation.
Naturally occuring neodymium ore is usually in the form of minerals such as bastnäsite (a rare earth carbonate) or monazite (rare earth phosphate) that are not magnetic.
Even if by some force of magic the rare earth ore would protect you from cosmic radiation, you now have two problems:
But those particles for which this shielding works on the Moon are already 100% shielded from the Earth surface through Earth's internal dipole field and through its atmosphere.