how to do the alpha and beta diversity and microbiota composition analysis ?

Hi again!

You summarized frequencies from all samples in group - is it by purpose? I would recommend to redo it with

mean-ceiling will take the ceiling of the mean of these frequencies;

or

median-ceiling will take the ceiling of the median of these frequencies.

Last time I run this command for cllapsed tables I encountered an error as well. It was solved by creating a new metadata file, in which I had only groups instead of samples id's.
So, if you have only two groups, your new metadata file should contain only two 'samples' - your groups.