Hi,
Thank you for posting the question to the Q&A forum.
The error is showing just because of wrong settings with Intune maybe you can find more here on this link : https://learn.microsoft.com/en-us/answers/questions/75687/user-getting-8018002-error-when-trying-to-register.html
I hope the above information can help you.
If the ANSWER is helpful, please click "Accept Answer" and upvote it. Thanks