Stability of nitrides of IIA group elements is in order
Ca3N2<Mg3N2<Be3N2
Be3N2<Mg3N2<Ca3N2
Ca3N2<Be3N2<Mg3N2
Mg3N2<Be3N2<Ca3N2
as the sizes of ions are dissimilar the stabilty is less.