Hi @Maciej Zobek
Teams tag is mainly focused on the general issue of Microsoft Teams troubleshooting. According to the error message, your problem has nothing to do with Teams. The problem should be related to Intune and device enrollment, which is not in our support scope. To help you better, I suggest you add the Intune tag in your post. The following suggestion is just for your reference:
According to the error message, please refer to this document for information about device enrollment.
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.