TLDR;

Visit your github personal tokens page, create a new token and use it in the following command:

composer config -g github-oauth.github.com <oauthtoken>

You can read this article to understand the reason behind it.

See also this link.