@Karthikeyan Shankar Thanks for posting in our Q&A.
To clarify this issue, we appreciate your help to collect some information:
1.Please show us the screen shot about the ESP profile you configured in intune portal. If you configure to install apps during ESP status, it is needed to enter a higher value in the setting "Show an error when installation takes longer than specified number of minutes".
2.Please try to remove the device from intune and autopilot completely and restart. Then retry the enrollment process.
3.If this issue still exists, please try Michael Niehaus's script to see what happened during our Autopilot process. Check the event in the process to see if there's any finding.
https://oofhours.com/2020/07/12/windows-autopilot-diagnostics-digging-deeper/
Note: Non-Microsoft link, just for the reference.
If there is anything update, feel free to let us know.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.