Hello Emanuel
This error mostly comes For Android and Windows desktop devices, password policies can't be immediately enforced on the users by using device restriction policies. If the user doesn't change the password as required by the policy, the error remains.
To fix the issue, direct the users to change their password.
On the Android platform, the end user must accept the password change notification. On the Windows MDM desktop platform, the user must press CTRL+ALT+DEL and click Change Password, and then the new password rules will be enforced.
You can check further here : https://learn.microsoft.com/en-us/troubleshoot/mem/intune/error-deploying-password-policy