If $Y$ is even, we get a contradiction mod $16$. So $Y$ is odd. We'll be working in $\Bbb Z[\sqrt{-1}]$, i.e. $\Bbb Z[i]$, i.e. the Gaussian integers.
$X^5=(Y+2i)(Y-2i)$. First we'll prove $Y+2i, Y-2i$ are coprime (i.e. relatively prime). Suppose $d\mid Y+2i, Y-2i$. Then $d\mid (Y+2i)-(Y-2i)=4i$, so $N(d)\mid 16=2^4$, where $N(d)$ denotes the norm of $d$ (i.e. if $d=x+yi$, then $N(d)=x^2+y^2$).
But also $d\mid Y+2i\implies N(d)\mid Y^2+4=X^5$, which is odd. We conclude $N(d)=1$. If $d=x+yi$, then $N(d)=x^2+y^2=1$, so $\{x,y\}=\{\pm 1, 0\}$, so $d$ is a unit. So $Y+2i, Y-2i$ are coprime.
Since $\Bbb Z[i]$ is a Unique Factorization Domain (i.e. UFD), we get $Y+2i=u(a+bi)^5$ for some $a,b\in\Bbb Z$ and a unit $u\in\{\pm i, \pm 1\}$; but since $\pm i, \pm 1$ are fifth powers, we can just let $Y+2i=(a+bi)^5$.
Therefore $5a^4b-10a^2b^3+b^5=2$, so $b\mid 2$. Let $a^2=t$. Testing $b\in\{-2,-1,1,2\}$ and solving quadratic equations in $t$ gives no solutions.
Remark: $\Bbb Z[\sqrt{-2}]$ is also a UFD. However, if $n\ge 3$, then $\Bbb Z[\sqrt{-n}]$ is not a UFD (see here). Due to the nature of units of $\Bbb Z[\sqrt{n}]$ when $n\ge 2$ (infinitely many units described by $x^2-ny^2=1$, related to Pell's equations), such methods couldn't be easily applicable (even though some of them can be UFDs). So only use this method for $\Bbb Z[\sqrt{-2}], \Bbb Z[\sqrt{-1}]$.
For more practice, see this paper (about Mordell's equations), where elementary similar examples are given.