Try removing the z move from your command to see if it saves correctly then. Perhaps the z move is draining too much power and preventing it from writing.
There are some threads in the forum discussing adding capacitors to allow for a bit more reserve.