EMC issue on isolator part
With no schematic, and no board layout - it's pretty hard to know. But I would expect a typical X1 safety capacitor (which is physically quite large, and usually designed to operate around 50/60Hz) to make quite a good radiator. If you're not interested in high frequency signals, put a Class Y capacitor and a small resistor forming a low pass filter on the input.