I had the same error, the Image was captured just fine, but the task would show as failed. I removed all the options/tasks from Post OS installation and System Configuration and it worked fine.
If the image is captured, then you know that the error happens after OS Installation/Capture Image.
![]()