Actually my conditions are not that benign if you see.
It needs to withstand shock as well as temperature changes. Also the location of the metal block is going to change. Hence the magnetic effect of different areas is different so that will also affect the overall system.