If you test the transformer, the PCB - to - IEC socket wiring is correct, the only things I can think of are:
- solder bridge somewhere between "L" and "0" or "N" and "0"
After pulling out all transformer wires from PCB try to test if there is connectivity between L's, N's and 0's. There should'nt be any! More than than there should'nt be any connectivity between 0's themselves.
- mistake in connection of the transformer
Isolate Blu/Yellow, Brown/Yellow, Black/Yellow, White/Black, Black, White ends from the transformer.
1. Connect only 2 wires from the transformer: Blue to L and Brown ro N. Try to power on the device.
2. If all is OK - power off, add Black to L, White to N, power on.
3. If all is OK - power off, connect Blu/Yellow, Brown/Yellow, Black/Yellow, White/Black, Black, White to different 0's, power on.
If something wrong detected on the step 1 I think you should try to deinstall the transformer and connect a plug, switch, fuse, transformer wires Blue and Brown in serial (to be shure all connections are right) on a clear surface. If fuse blows anyway - the transformer should be replaced. I don't think you can do anything with it.
The step 2 should not reveal anything. If it is so - there are some mistake with wiring (agree - sounds dull, but we are all - humans with complex thoughts

) or some short-circuitings on PCB.
If the problem appears on step 3 - it definitely points to short-circuiting on the PCB.