I am trying to calculate the formation energy of $\ce{Mg2Si}$ and for the calculation of lowest energy configuration of Bulk $\ce{Si}$: $E(\ce{Si})$ and bulk Mg $E(\ce{Mg})$. I have opted for both structures from the Materials Project with the same space group Fm3m. I am wondering that if I change the space group of both i.e by employing different structures from another space group formation energy changes drastically. For the same space group, the value of formation energy does not match with previous results.
How will I decide the correct prediction of bulk materials (Mg, Si)?