I have just merged a fix for this: UX: Show invitation requirements before external login - Pull Request #46409 - discourse/discourse - GitHub
On invite-only login-required sites we will now show a clearer landing page that instructs people to use invitation links. So, before they embark on the sign-up process, they are warned that they need an invite.
The fix should land on all sites on our hosting over the next 24-48 hours.