The power spike (and noise) coming from the AC mains could be getting to GPIO2 of the PicoW and resetting the device. That same path does not exists on the rPI. You should consider adding the filter capacitor and TVS diode that was suggested earlier (see R10/R1 on PicoW datasheet).
Statistics: Posted by languer — Sun Dec 17, 2023 5:04 am