I'm glad you solved it. One possible cause I didn't mention was the wires between the PSU and the Duet being too thin, so that when the bed heater turns on the voltage drop in those wires is too great.