I claim that $m\leqslant 2$. Taking the square we get $a+\sqrt{b}+\sqrt{c}=(\sum d_i)+2\sum \sqrt{d_id_j}$.
By Besicovitch theorem, the square roots of positive integers do not admit a non-trivial linear dependence over $\mathbb{Q}$, that is, $\sum c_i\sqrt{n_i}\ne 0$ for non-zero rational coefficients $c_i$ and distinct squarefree positive integers $n_i$ (one-line proof: divide by $\sqrt{n_1}$ and take the trace).
Define a squarefree part $s(N)$ of a positive integer $N$ as the squarefree $t=s(N)$ such that $N=tr^2$ for an integer $r$.
If $m\geqslant 3$, then $d_1d_2$, $d_2d_3$, $d_1d_3$ have mutually distinct squarefree parts, also they are not equal to 1. Thus at least one of them is not equal neither to $s(b)$ nor $s(c)$. So this equality would contradict to Besicovitch theorem.