If you have reached your user limit already. You need to upgrade license first, before inviting more users.

Deactivated Users and Pending invites (for user who did not accept invitation yet) are also counted in your license. Deleting a User or Canceling pending invite decreases the licensed user count.