A thermoacoustic module includes a substrate, at least one first electrode, at least one second electrode, at least one first conductive bonding layer, at least one second conductive bonding layer, and a sound wave generator. Exposure of the implantable device to the magnetic field andor the Radio Frequency field is detected using the sensing device. The controller determines a mini-spare distance signal and generates a warning signal when the mini-spare distance signal exceeds a predetermined distance. Then, upon detecting another size threshold as the window is being increased or decreased in size, another functional state associated with the detected threshold is applied to the window. Errors can have a severity that can facilitate the display of errors to a user.