Error code 40 is when the voltage between earth pin and neutral is too high.
I had the same problem, turns out I don't have a phase 230V and a neutral 0V but bi-phase installation and in my case 136V between earth and "neutral".
There is a switch in the options "Dual Live Wire Compatible Switch" that I needed to turn on and it was working. Mesure your voltages and if you're in the same case, just switch it on.