How to downgrade Composer via homebrew?
To check the versions available you can run this command:
brew log composer
Then install Composer and change the version directly via Composer command.
brew install composer
composer self-update 1.10.15
To toggle between the 1.x and 2.x:
composer self-update --1
composer self-update --2