Stability of two‐dimensional magnetohydrodynamic motions in the periodic case