There is a pattern, always fail during the same phase, applying the wim file!
At this point I think that installing Windows fresh into a clean SSD/HDD, with nothing more connected, to see if it works would be the best test to determine if there is some hardware problem.
Do you notice anything that could suggest a thermal problem?