Sounds like a 40 watt heater with a sock. That is too much heat/too much insulation, if the Duet's FETs ever failed on, the hotend would reach ~700C, melt the heater block, and likely start a fire. Would recommend a 30w heater if you plan to use a sock.
The PID tune won't prevent a fire as no matter what the gains are, it can't compensate for a hardware failure.