This is due to product defect #20507.
The check which raises the error compares the domain of the account with the domain of the assigned manager account. If they are different you'll get the error. To determine the domain the check jumps from the account to the container and then to the domain.The reason of the error is the sequence of the template execution.
The template for "UID_ADSAccountManager" was executed BEFORE the template for the container runs. That means: the manager value was filled before the account has a container. In this situation the check fails - "No domain" is different to "Domain of the manager".