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