After @metamorphy's elegant solution and answers, we can also write
$$I=2\sum_{n=0}^\infty\frac{(-1)^n}{(2n+1)!}\int_0^{\frac\pi2}\sin^{2n}(x)\,dx= \sqrt \pi \sum_{n=0}^\infty (-1)^n\frac{ \Gamma \left(n+\frac{1}{2}\right)}{\Gamma (n+1)
\Gamma (2 n+2)}$$
$$I=\pi \,\,\,
_1F_2\left(\frac{1}{2};1,\frac{3}{2};-\frac{1}{4}\right)$$
The convergence is very fast since we have an alernating series and
$$a_n=\frac{ \Gamma \left(n+\frac{1}{2}\right)}{\Gamma (n+1)
\Gamma (2 n+2)}\implies \frac{a_{n+1}}{a_n}=\frac{2 n+1}{4 (n+1)^2 (2 n+3)}=\frac{1}{4 n^2}+O\left(\frac{1}{n^3}\right)$$
If we truncate the sum as
$$I=\sqrt \pi \sum_{n=0}^p (-1)^n\frac{ \Gamma \left(n+\frac{1}{2}\right)}{\Gamma (n+1) \Gamma (2 n+2)}+\sqrt \pi \sum_{n=p+1}^\infty (-1)^n\frac{ \Gamma \left(n+\frac{1}{2}\right)}{\Gamma (n+1) \Gamma (2 n+2)}$$ for, a given accuracy we search for $p$ such that
$$\frac{\sqrt{\pi }\,\, \Gamma \left(p+\frac{3}{2}\right)}{\Gamma
(p+2) \Gamma (2 p+4)} \leq \epsilon$$ an approximation (in fact an overestimate) is given by
$$p \sim \frac{1}{2} \exp\left(1+W\left(-\frac{\log (16 \epsilon )}{e}\right)\right)$$ where $W(.)$ is the principal branch of Lambert function.
For $\epsilon=10^{-50}$, this gives, as a real, $p=20.648$ while the "exact" solution is $p=19.022$