How to configure the OIDC to set the Username as the email account name or a username like value returned from my auth providers?

The Discourse OIDC plugin will use the ‘nickname’ claim provided by the identity provider. So you’ll need to review the documentation for your identity provider and work out how to make it send the ‘nickname’ value that you’d like.