This is an old and classical error, when trying to capture a Windows Image from SCCM 2012.
Your build and capture task sequence is returning the error 0x00000004 when running the step Prepare OS (sysprep).
If we take a closer look at the SMSTS.log we can see that the computer we are trying to capture is joined to the domain.
So let’s change it to a workgroup in the task sequence.
Please be aware that this can lead to other problems, while installing Application or Windows Updates, so take a look at this article as well: