Note that the Taylor expansion
$$
\frac{1}{1-x} = 1+x+x^2+x^3+\ldots
$$
converges only when $|x|<1$. In the integral, $x$ goes from $0$ to $1$, as you've acknowledged. Thankfully, the point $x=1$ has zero measure. This doesn't affect anything and you can use the expansion safely.
Here's the hard part — proving the fascinating equality down below.
$$
\bbox[15px,border:4px groove red]{\int_{0}^{1}\frac{x^{49}\left(1-x\right)}{1-x^{101}}dx = -\frac{\pi}{101}\cot\left(\frac{51\pi}{101}\right)}
$$
Let $\mathcal{I}$ be the integral in question. We use the substitution $x = u^{1/101}$ and some non-intuitive algebra manipulations to get
$$
\begin{align}
\mathcal{I} &= \int_{0}^{1}\frac{u^{49/101}\left(1-u^{1/101}\right)}{1-u}\cdot\frac{1}{101}u^{-100/101}du \\
&= \frac{1}{101}\int_{0}^{1}\left(\frac{u^{-51/101}}{1-u}-\frac{u^{-50/101}}{1-u}\right)du \\
&= \frac{1}{101}\int_{0}^{1}\left(\frac{u^{-51/101}}{1-u}-\frac{u^{-50/101}+1-1}{1-u}\right)du \\
&= \frac{1}{101}\int_{0}^{1}\left(\frac{1-u^{-50/101}}{1-u}-\frac{1-u^{-51/101}}{1-u}\right)du \\
&= \frac{1}{101}\int_{0}^{1}\frac{1-u^{\frac{51}{101}-1}}{1-u}du-\frac{1}{101}\int_{0}^{1}\frac{1-u^{\frac{50}{101}-1}}{1-u}du\,. \\
\end{align}
$$
Next, we use one of the integral representations for the Digamma Function, which is
$$
\psi(z) = -\gamma + \int_0^1 \frac{1-x^{z-1}}{1-x}dx\,,
$$
where $\Re(z) > 0$, I think, and $\gamma$ is the Euler-Mascheroni Constant. The functional relation is proven in this YouTube video by the YouTuber named Flammable Maths. We proceed further by writing
$$
\begin{align}
\mathcal{I} &= -\frac{\gamma}{101} + \frac{1}{101}\int_{0}^{1}\frac{1-u^{\frac{51}{101}-1}}{1-u}du + \frac{\gamma}{101} - \frac{1}{101}\int_{0}^{1}\frac{1-u^{\frac{50}{101}-1}}{1-u}du \\
&= \frac{1}{101}\left(\psi\left(\frac{51}{101}\right) - \psi\left(\frac{50}{101}\right)\right) \\
&= \frac{1}{101}\left(\psi\left(\frac{51}{101}\right) - \psi\left(1-\frac{51}{101}\right)\right)\,.
\end{align}
$$
We end with the Digamma Reflection identity,
$$
\psi(1-z) - \psi(z) = \pi \cot(\pi z)\,,
$$
which is derived in this YouTube video (timestamp 8:57 to 18:37) by the YouTuber named Gamma Digamma.
Finally, the answer is
$$
\bbox[15px,border:4px groove green]{\int_0^1 \frac{x^{49}}{1+x+x^2+\cdots+ x^{100}}\;dx = -\frac{\pi}{101}\cot\left(\frac{51\pi}{101}\right)}
$$
and we're done!
Cheers ❤️