I can offer my understanding, which certainly may be wrong, so if you're asking for health reasons, talk to a medical doctor.
Most pacemakers are a contraindication for MR imaging. My understanding is that the failure mode has to do with corruption of the program, and not ripping out from under the skin and sticking to the side of the magnet.