After trying and as commented by Dusan above, creating ‘A’ record for “sub.xyz.com” in WIX resolved the issue.
solved How to add a subdomain pointing to IP of EC2 instance in AWS where the domain is pointing to the IP of the machine of some other hosting provider?