Your approach of excluding arrangements where $i + 1$ empty boxes are adjacent fails to exclude cases in which disjoint pairs of empty boxes appear.
Let's define $A_i$ to be the case in which adjacent boxes $i$ and $i + 1$ are empty.
As you observed, if there were no restrictions, the number of ways of distributing $10$ indistinguishable balls into five distinct boxes is the number of solutions of the equation
$$x_1 + x_2 + x_3 + x_4 + x_ 5 = 10$$
in the non-negative integers, which is
$$\binom{10 + 5 - 1}{5 - 1} = \binom{14}{4}$$
From these, we must exclude those cases in which a pair of adjacent boxes is empty. By the Inclusion-Exclusion Principle, the number of cases in which a pair of adjacent boxes is empty is
$$|A_1 \cup A_2 \cup A_3 \cup A_4| = \sum_{i = 1}^{4} |A_i| - \sum_{1 < \leq i < j \leq 4} |A_i \cap A_j| + \sum_{1 \leq i < j < k \leq 4} |A_i \cap A_j \cap A_k| - |A_1 \cap A_2 \cap A_3 \cap A_4|$$
$|A_1|$: If boxes $1$ and $2$ are empty, then the $10$ indistinguishable balls must be distributed to the remaining three boxes, which can be done in
$$\binom{10 + 3 - 1}{3 - 1} = \binom{12}{2}$$
ways.
By symmetry, $|A_1| = |A_2| = |A_3| = |A_4|$.
$|A_1 \cap A_2|$: This means boxes $1, 2,$ and $3$ are empty. Thus, the $10$ indistinguishable balls must be distributed to the remaining two boxes, which can be done in
$$\binom{10 + 2 - 1}{2 - 1} = \binom{11}{1}$$
ways.
By symmetry, $|A_1 \cap A_2| = |A_2 \cap A_3| = |A_3 \cap A_4|$.
$|A_1 \cap A_3|$: This means boxes $1$ and $2$ and boxes $3$ and $4$ are empty. Thus, the $10$ indistinguishable balls must be distributed to the remaining box, which can be done in one way.
By symmetry, $|A_1 \cap A_3| = |A_1 \cap A_4| = |A_2 \cap A_4|$.
$|A_1 \cap A_2 \cap A_3|$: This means boxes $1, 2, 3,$ and $4$ are empty. The remaining $10$ balls can be distributed to the remaining box in one way.
By symmetry, $|A_1 \cap A_2 \cap A_3| = |A_2 \cap A_3 \cap A_4|$.
$|A_1 \cap A_2 \cap A_4|$: This means boxes $1$ and $2$ are empty, boxes $2$ and $3$ are empty, and boxes $4$ and $5$ empty, so all five boxes would have to be empty, which is not possible since we must distribute $10$ balls to the five boxes. Thus, $|A_1 \cap A_2 \cap A_4| = 0$.
By symmetry, $|A_1 \cap A_2 \cap A_4| = |A_1 \cap A_3 \cap A_4|$.
$|A_1 \cap A_2 \cap A_3 \cap A_4|$: This means all five boxes would have to be empty, which is not possible since we must place $10$ balls in the boxes. Thus, $|A_1 \cap A_2 \cap A_3 \cap A_4| = 0$.
Therefore, by the Inclusion-Exclusion Principle, the number of admissible arrangements is
$$\binom{14}{4} - \binom{4}{1}\binom{12}{2} + \binom{3}{1}\binom{11}{1} + \binom{3}{1}\binom{10}{0} - \binom{2}{1}\binom{10}{0} = 771$$