Error 5 refers to the temperature sensor.
On my machine the wire to it had broken at the spade connector connecting to the sensor.
You can access it easily by removing the back panel, the sensor is at the bottom of the drum with one white wire coming from it. I replaced the connector with a sleeved 1/4" spade connector bought from Halfords.
The wire is of poor quality so try to support it so vibrations dont cause the cable to fracture again
Usually answered in minutes!