Hi
The basis set for Mg that you are using contains an exponent of 30, for which the cutoff of 400 Ry is much too small.
In this case it is probably better to switch to GAPW.
Anyway I would suggest to use PP and BS in the UZH libraries, which are currently the best performing MOLOPT settings.