$\mathbf{NOTE=}$ This answer needs a little bit wolfram-alpha or any other sofware to calculate this torturus exponential generating function calculations.
By using P.I.E , we calculate at least $8$ red or at least $8$ blue or at least $8$ green or at least $8$ yellow or at least $8$ white
The exponential generating function for at least $8$ red : $$\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)$$
The others can be shown by $e^x$
Then , when there are at least $8$ red house , find the coefficient of $x^{400}$ in the expansion of $$\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg) \times e^{4x}$$ and multiply it by $400!$
By P.I.E ,we know that it will be applied for the other colors , so find $$5 \times [x^{400}] \bigg[\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg) \times e^{4x}\bigg]$$
When two color have at least $8$ house ,then $$\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^2 \times e^{3x}$$
We know that we can select any of two by $C(5,2)=10$ ways , so $$10 \times [x^{400}] \bigg[\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^2 \times e^{3x}\bigg]$$
When three color have at least $8$ house ,then $$\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^2 \times e^{2x}$$
We know that we can select any of three by $C(5,3)=10$ ways , so $$10 \times [x^{400}] \bigg[\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^3 \times e^{2x}\bigg]$$
When four color have at least $8$ house ,then $$\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^4 \times e^{x}$$
We know that we can select any of four by $C(5,4)=5$ ways , so $$5 \times [x^{400}] \bigg[\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^4 \times e^{x}\bigg]$$
When five colors have at least $8$ house ,then $$\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^5 $$
We know that we can select any of three by $C(5,5)=1$ ways , so $$1 \times [x^{400}] \bigg[\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^5 \bigg]$$
By P.I.E $$5 \times [x^{400}] \bigg[\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg) \times e^{4x}\bigg] - 10 \times [x^{400}] \bigg[\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^2 \times e^{3x}\bigg] + 10 \times [x^{400}] \bigg[\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^3 \times e^{2x}\bigg] -5 \times [x^{400}] \bigg[\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^4 \times e^{x}\bigg] +[x^{400}] \bigg[\bigg(\frac{x^8}{8!}+ \frac{x^9}{9!}+ \frac{x^{10}}{10!}+\frac{x^{11}}{11!}..\bigg)^5 \bigg]$$
Unfortunately , you should use worlfram-alpha to calculte it or any software .After that divide the solution by $5^{400}$
$\mathbf{EDITION=}$ Thanks to @Mike Earnest , I realize that there is an another condition such that the houses must be consecutive. I could not realize it. My answer does not cover the restriction about being consecutive .
$\mathbf{EDITION-2=}$ I spend a little time to find easier way , but i could not. Hence , i am writing this cumbersome solution. This solution needs some knowledge from Enumerative Combinatorics. My method is called Goulden-Jacson-Cluster method. By utilizing @lulu's comment , we will find the number of strings which do not contain single character blocks of length $\geq 8$
I am putting here a article about Goulden -Jackson : https://arxiv.org/abs/math/9806036
I will solve only for length $8$ , the rest is for you , but i highly recommend using a software for it.
The number of strings that do not contain any single block of legth $8$ :
Our alphabet $V= \{R,B,G,Y,W\} \rightarrow |V|=5$ . Moreover our bad words are $\{RRRRRRRR,BBBBBBBB,GGGGGGGG,YYYYYYYY,WWWWWWWW \}$
$$A(x)=\frac{1}{1-dx-\text{weight}(\mathcal{C})}$$
$$\text{weight}(\mathcal{C})=\text{weight}(\mathcal{C}[RRRRRRRR] +\mathcal{C}[BBBBBBBB] +\mathcal{C}[GGGGGGGG] +\mathcal{C}[YYYYYYYY] +\mathcal{C}[WWWWWWWW])$$
$\text{weight}(\mathcal{C}[RRRRRRRR])= -x^8-(x+x^2+x^3+x^4 +x^5 +x^6 +x^7)\text{weight}(\mathcal{C}[RRRRRRRR])$
So , $$\text{weight}(\mathcal{C}[RRRRRRRR])= \frac{-x^8}{(1+x+x^2+x^3+x^4 +x^5 +x^6 +x^7)}$$
The other are the same if you calculate , then $$\text{weight}(\mathcal{C})= \frac{-5x^8}{(1+x+x^2+x^3+x^4 +x^5 +x^6 +x^7)}$$
So , $$A(x)=\frac{1}{1-5x-\frac{-5x^8}{(1+x+x^2+x^3+x^4 +x^5 +x^6 +x^7)}}$$
When , you find the expansion this fraction , you need to find the coefficient of $[x^{400}]$ . It will give you the number of strings that satisfy the desired condition in $8$ consecutive houses.
$\mathbf{WARNING=}$ I know that i did not get in calculation details in "edition $2$" , because it take much time to explain the all process in Goulden -Jackson , so i put a link above. You can ask any question if you do not understand the process in the link. This edition is just for giving an approach.