Another way to write $Q\bigg(\sqrt{\frac{2E_b}{N_0}}\bigg)$ is in terms of minimum distance as $Q\bigg( \sqrt{\frac{d_{min}}{2N_0}}\bigg)$. The minimum distance for the two dimensional antipodal case is $d_{min, 2}=2\sqrt{E_b}$, and the minimum distance for the $M$ dimensional case can be computed. If we call the two symbols as $\mathbf{s}_1=\sqrt{\frac{E_b}{M}}\big[1, 1, .., 1\big]^T$ and $\mathbf{s}_2=-\sqrt{\frac{E_b}{M}}\big[1, 1, .., 1\big]^T$, the $d_{min, M}$ is found by computing the distance between them, since there are only two symbols this is the minimum distance.
\begin{align}
d_{min, M} &= \sqrt{\sum_{i=1}^M \big(s_{1, i} - s_{2, i} \big)^2}\\
&=\sqrt{\sum_{i=1}^M \bigg(\sqrt{\frac{E_b}{M}}+\sqrt{\frac{E_b}{M}}\bigg)^2}\\
&=\sqrt{\sum_{i=1}^M \bigg(2\sqrt{\frac{E_b}{M}}}\bigg)^2\\
&=\sqrt{4M\frac{E_b}{M}}\\
&=2\sqrt{E_b}=d_{min, 2}
\end{align}
You can see the $M$ cancels out so it does not change the minimum distance or the probability of error and $d_{min, 2}=d_{min, M}$.