For AC voltage operation, a RC filter is often used, which must be placed directly on the inductor and adapted to it. The filter value can be determined by calculation, if the inductance of the coil is known, or by experiment. For contactors, RC filters can significantly reduce burn.
STOERK filter family