Invalid version constraint with non registry URL

How to resolve the following error message
Error: Invalid version constraint Cannot apply a version constraint to module “xxxxxx-policy” (at xxxxx-policy.tf:81) because it has a non Registry URL.

i have module version of non null value, but TFE still complains about invalid version constraint