Good luck - come back if that doesn't work. That error about the array - almost looks as if a field might be messing it up - did you by chance add a new field to your student accounts? Or is it possible that when you added the second domain to the allow list it was not in the right format?
Moodle in English -> Authentication Problems with MS oauth2, but only when using a subdomain-account -> Re: Problems with MS oauth2, but only when using a subdomain-account
by Emma Richardson -