The Invalid eSpace error is issued in the following situation:
Multi-tenant eSpaces cannot be used as User Providers: your eSpace is multi-tenant and therefore it cannot provide the end-users to other eSpaces.
You must set your eSpace to single-tenant or change another eSpace to provide the end-user. See more about Single Sign-On
Single Sign-On | About Error Messages