Hi
Thanks for posting in the Q&A forum
I found a link that may solve your problem, but I need more information
Under the error "User profile cannot be attached" there should be an error code and reason
Link is below, you can compare the images in the link and get the solution
Issues with old, temp or local profiles - FSLogix | Microsoft Learn
Best regards
Yanhong
=====================================
If the answer is helpful, please click "Accept answer" and upvote it.