This is not an answer.
Instead, this is a long winded comment.
Because of the MathSE protocol, I am not allowed to answer the question. However, I can give hints.
You will have to first determine why the following approach is valid: You want the number of solutions to
$~x1 + \cdots + x_8 = 7.$
$~x_1, \cdots, x_8 \in \{0,1,2,3\}.$
Focusing only on the variables $~\{ ~x_2, ~\cdots, ~x_7\},~$
there is no occurrence of $~3~$ or more consecutive variables $~x_i~$ that are each equal to $~0.$
With respect to the consecutive variables constraint, the variables $x_1~$ and $~x_8~$ can be ignored.
Ignoring the issue of consecutive variables, where I see no elegant fix, for the overall attack on the remainder of the problem: See this answer for a blueprint of how to combine Inclusion-Exclusion with Stars-And-Bars to attack this generic type of problem.
With respect to the consecutive variables constraint, one (inelegant) approach is to enumerate the number of unsatisfying solutions that have exactly $~k~$ of the $~x_i~$ variables $~\{ ~x_2, \cdots, x_7 ~\} ~$ equal to $~0.~$
Here you are only interested in $~3 \leq k \leq 6.$
For each $~k,~$ what percentage of the corresponding solutions will have $~3~$ or more consecutive variables $~\{ ~x_2, \cdots, x_7 ~\} ~$ equal to $~0 ~?$