Starting with iOS 17, for security reasons, it is only possible to configure an MDM profile if theft protection is disabled.
If this feature is enabled at the time of installation, you will need to wait for a period of 1 hour before disabling is allowed, and then proceed with the configuration.