M1 Always return an error and reset the password

Hi
My M1 MacBook Air When deploying an image using MDS, the system prompts that the password failed to be reset after the final disconnection is executed.
My device has erased the hard disk many times.Can you give me some help?