See parent task and T110414#1578206.
The 'AbortNewAccount' hook is deprecated. Implement a PreAuthenticationProvider (or other AuthenticationProvider) instead. This will also allow you to remove your use of the now-deprecated 'UserCreateForm' hook.
You'd also need to update your check in the 'BeforePageDisplay' hook function since AuthManager does account creation on Special:CreateAccount rather than Special:UserLogin/signup, but it would probably be better to get the match checking merged into core instead.