Thanks @jamieh for the detailed report and the backtrace. It was indeed related to my recent changes. Specifically, if an authentication provider did not pass an email address, it would cause an error. It should be fixed by
https://github.com/discourse/discourse/commit/fbf29443bdb84e0a07a34a82d7893ab967854bd9