You can solve this using Feynman integration and distributions.
Let $$I(t)=\int_0^{\infty}\frac{\cos (tx)}{x^4+1}dx.$$
Then, $$I^{''''}(t)+I(t)=\int_0^{\infty}\cos (tx)dx.$$
Treating this integral as a distribution, you can write $\int_0^{\infty}\cos (tx)dx=\pi\delta(t)$ where $\delta(t)$ is the 'Dirac-delta function' which can be informally written as
$$\delta(x) =
\begin{cases}
+\infty & \text{if } x = 0, \\
0 & \text{if } x \neq 0,
\end{cases}$$
and always satifies $\int_a^b\delta(x)=1$ when $b<0$ and $a>0$. This condition is where the factor of $\pi$ comes from. Think about, for example, $\int_{-1}^{1}\left[\int_0^{\infty}\cos (tx)dx\right]dt=\int_0^{\infty}\int_{-1}^{1}\cos (tx)dtdx=\int_0^{\infty}\frac{\sin(t)}{t}dx=\pi$.
So, the ODE ends up as
$$I^{''''}(t)+I(t)=\pi\delta(t).$$
This may look daunting but it's much more straightforward than you'd think. These kinds of equations are common in the study of Green's functions for ODE's.
To solve this in general, you solve $I^{''''}(t)+I(t)=0$ seperately for $t>0$ and $t<0$ and match up the coefficients so that $I(t)$ and its first and second derivatives are continuous at $0$ but $I^{'''}(0^+)-I^{'''}(0^-)=\pi$.
Now, we find need to find the initial values. We pick $0^+$. We can figure out $I$ and $I^{''}$ using partial fractions and the factorization $x^4+1=(x^2-\sqrt{2}x+1)(x^2+\sqrt{2}x+1)$. We can figure out $I'$ and $I^{'''}$ using the evenness of $I$ and the continuity conditions of $I$ at $0$.
The full initial value problem for $I$ is:
$$I^{''''}(t)+I(t)=\pi\delta(t);$$
$$I(0^+)=\frac{\pi}{2\sqrt{2}},\text{ }I'(0^+)=0,\text{ }I^{''}(0^+)=-\frac{\pi}{2\sqrt{2}},\text{ }I^{'''}(0^+)=\frac{\pi}{2}.$$
This has solution:
$$I(t)=\frac{\pi e^{-\frac{|t|}{\sqrt{2}}} \left( \cos\left(\frac{t}{\sqrt{2}}\right) +\sin\left(\frac{|t|}{\sqrt{2}}\right) \right)}{2 \sqrt{2}}.
$$