@Ahmed Sh, Thanks for posting in Q&A.
To clarify this issue, please share with us the following information.
1.What kind of deployment do you use to configure Windows Hello for Business?
2.Could you please share the screenshot of returned error?
3.Check if there exist some useful message in Applications and Services logs\Microsoft\Windows\HelloforBusiness\Operational and Microsoft\Windows\User Device Registration\Admin and Microsoft\Windows\Security-Kerberos\Operational under Event Viewer.
4.Please also check whether the device meet the requirements.
Also, here is a link about the know deployment issues you can refer.
If there is any update, feel free to contact me.
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.