ED4 indecates a problem with the dryer board of the machine.
But a lot of the time its a faulty dryer element that causes the problem.
What you can try is take the top off and you will see the dryer chamber in the middle.
At the back of the dryer chamber you will see the wiring for the element.
Disconnect the element. Then run the machine and see how it goes. If it runs through ok then the fault will be the dryer element which will need to be replaced.
If still faulty then you will need to replace the dryer board.
If you need anymore info just get back to me.