If it is a mechanical relay that is switching the power to the door holder and the relay modules are failing, I suspect the door holding magnets may be drawing too much current. The relay might be working but the power draw might be overheating the pcb traces.

That might explain the burnt electrical smell.