When a Teams group ends up with no owner (i.e. due to resignation), a new owner has to be assigned through Microsoft 365 admin center - Groups.



Source