take into account item maxStackSize when calculating free space in digitalchest