Found this out. You have your guild listed in the Guild Finder, unlist it and the Invite Member button will work again. I also posted this in the Bug Report, hoping it’s a bug and Blizzard will fix so you can be listed and invite at the same time.
Bug Post: Invite Member Button Not Working ... Kinda / Sorta / Maybe - #2 by Miltôn-atiesh