Blocking, like attacking and running, will consume stamina. Blocking an attack that empties your stamina will break your guard and temporarily stun you.