I want to add some information. One person of another forum, recomended me to try setting the RAM whitout the XMP option.
With XMP, the memory works at 2400MHz and 1.650v. Without XMP, it works at 1600MHz and 1.5v.
Since I set without XMP, I didn't have any restart event.
My memories are 2 x G.Skill RipjawsZ F3-2400C10D-8GZH 8GB DDR3 2400Mhz. In the web page, says to be compatible with G1.Sniper 5. I suppose to be with G1.Sniper M5 too, becase they are almost equal.
Memories's Web page:
http://www.gskill.com/en/product/f3-2400c10d-8gzh go to QVL, Gigabyte, Z87. The first one says G1.Sniper 5.