Magnetic fields drops off roughly proportional to the cube of the distance. So, if it has an effect at 1", keep it at least 2" - 4" away and you're probably fine.
Source: https://www.physicsforums.com/threads/calculating-how-magnetic-field-strength-decreases-with-distance.754213/