I am unsure if it is appropriate to post this as an answer, since a similar question was given a similar answer in the post Prove or disprove: $\sum_{n=0}^\infty e^{-|x-n|}$ converges uniformly in $(-\infty,\infty)$.
As remarked there, if the series converged uniformly on $(0, \infty)$, then the functions $g_n(x) = \cos(n x)^{n^2} / (e^x+x)^n$ would converge uniformly to $0$ on $(0, \infty)$.
However, while the functions $g_n$ do converge to $0$ pointwise, the convergence is not uniform. Indeed, for each fixed $n \geq 1$, we have $\lim_{x \to 0^+} g_n(x) = g_n(0) = 1$ since $g_n$ is continuous on $[0, \infty)$. In particular, this implies that $\sup_{x\in (0,\infty)} |g_n(x) |\geq 1$. This in turn implies
$$
\lim_{n \to \infty} \;\sup_{x \in (0, \infty)} |g_n(x)| \geq 1
$$
So the $g_n$ do not converge uniformly to $0$ on $(0, \infty)$, since in this case we would have $\lim_{n\to \infty} \sup_{x \in (0 , \infty)} |g_n(x)| =0$.