I don’t know the specifics of the system you are referring to, but when we use a magnet to disable an ICD it’s a 3” diameter ring magnet against the skin, over the device.
I would expect something contained within a rifle not to be an issue under normal handling.