MDT FAILURE 5627 – MDT fails to complete Task Sequence
Looks like the latest windows server updates breaks MDT – the fix for me was to install the latest ADK versions from here https://docs.microsoft.com/en-us/windows-hardware/get-started/adk-install