You can't enable archiving or increase the mailbox quota for an Office 365 Group mailbox used by Microsoft Teams

Messages for every channel within a Microsoft Teams team are stored in the Office 365 Group mailbox that's associated with that team. Enabling archiving and increasing the mailbox quota for the Office 365 Group mailbox are not supported.

More information

Still need help? Go to Microsoft Community.