If we only consider 8 places, these can contain one of the following eleven distributions of colors:
[2, 2, 2, 2] 2520
[1, 2, 2, 3] 20160
[1, 1, 3, 3] 6720
[0, 0, 3, 5] 672
[0, 2, 3, 3] 6720
[0, 1, 3, 4] 6720
[0, 1, 2, 5] 4032
[0, 2, 2, 4] 5040
[0, 0, 4, 4] 420
[1, 1, 2, 4] 10080
[1, 1, 1, 5] 1344
So for instance one can have two of each color ie. [2, 2, 2, 2] which can happen in
$$
1\times \binom{8}{2, 2, 2, 2}=\frac{8!}{(2!)^4}=2520\text{ ways}
$$
The total number of combinations above is $64428$, which is entirely feasible to analyze using a computer. After excluding each color from two places each, a program tracing the valid combintaions yielded:
[2, 2, 2, 2] 297
[1, 2, 2, 3] 2256
[1, 1, 3, 3] 720
[0, 0, 3, 5] 48
[0, 2, 3, 3] 696
[0, 1, 3, 4] 624
[0, 1, 2, 5] 288
[0, 2, 2, 4] 480
[0, 0, 4, 4] 36
[1, 1, 2, 4] 984
[1, 1, 1, 5] 96
After this I programmed another part accounting for how many ways the remaining $12$ beads can be placed in the remaining $10$ places. Finally I multiplied and added these figures together and ended up with $758833488$. This figure was based on the following data, which is essentially summarizing the analysis my program carried out:
8: [2, 2, 2, 2] 297
10: [1, 3, 3, 3] 67200
10: [2, 2, 3, 3] 151200
8: [1, 2, 2, 3] 2256
10: [1, 3, 3, 3] 16800
10: [1, 2, 3, 4] 50400
10: [2, 2, 3, 3] 75600
10: [2, 2, 2, 4] 18900
10: [0, 3, 3, 4] 4200
8: [1, 1, 3, 3] 720
10: [0, 2, 4, 4] 6300
10: [1, 2, 3, 4] 50400
10: [2, 2, 3, 3] 25200
10: [2, 2, 2, 4] 37800
10: [1, 1, 4, 4] 6300
8: [0, 0, 3, 5] 48
10: [0, 2, 4, 4] 3150
10: [0, 0, 5, 5] 252
10: [0, 1, 4, 5] 2520
10: [0, 2, 3, 5] 5040
and
8: [0, 2, 3, 3] 696
10: [1, 2, 2, 5] 22680
10: [0, 2, 3, 5] 5040
10: [1, 2, 3, 4] 25200
10: [1, 1, 3, 5] 5040
10: [2, 2, 3, 3] 25200
10: [2, 2, 2, 4] 18900
8: [0, 1, 3, 4] 624
10: [1, 2, 2, 5] 7560
10: [0, 2, 4, 4] 3150
10: [0, 1, 4, 5] 2520
10: [0, 2, 3, 5] 2520
10: [1, 2, 3, 4] 25200
10: [1, 1, 3, 5] 5040
10: [1, 1, 4, 4] 6300
8: [0, 1, 2, 5] 288
10: [0, 3, 3, 4] 8400
10: [0, 2, 4, 4] 3150
10: [0, 1, 4, 5] 1260
10: [0, 2, 3, 5] 5040
and
8: [0, 2, 2, 4] 480
10: [0, 3, 3, 4] 4200
10: [1, 2, 2, 5] 7560
10: [0, 2, 3, 5] 5040
10: [1, 3, 3, 3] 16800
10: [1, 2, 3, 4] 25200
10: [1, 1, 3, 5] 10080
8: [0, 0, 4, 4] 36
10: [1, 1, 3, 5] 10080
10: [1, 1, 4, 4] 6300
10: [0, 0, 5, 5] 252
10: [0, 1, 4, 5] 5040
8: [1, 1, 2, 4] 984
10: [1, 3, 3, 3] 16800
10: [1, 2, 3, 4] 50400
10: [1, 1, 4, 4] 6300
10: [0, 3, 3, 4] 8400
10: [0, 2, 4, 4] 3150
8: [1, 1, 1, 5] 96
10: [0, 3, 3, 4] 12600
10: [0, 2, 4, 4] 9450
where 8:and 10: respectively stand for partitions of the 8 and 10 places, and the figures are multiplied and added as follows:
$$
\begin{align}
T&=297\cdot(67200+151200)+2256\cdot(16800+...)+...+96\cdot(12600+9450)\\
&=758833488
\end{align}
$$
This is roughly one $10^{\text{th}}$ of your first figure without the exclusions, which BTW is what you get if you use $2520,20160,...,1344$ in stead of $297,2256,...,96$ in the expression for $T$ above. So I believe the answer to be $758833488$.