The problem with the way your question is posed is that your answer will be a function of the true mean $\mu$, because you stipulate that $\bar Y$ must be "within $2\%$ of the true mean with $95\%$ confidence. Consequently, if $\mu$ is small in magnitude, your tolerance for error is similarly small and your required sample size is huge; whereas if $\mu$ is sufficiently large, a single observation may suffice because the variance is fixed at $1$.
For instance, if $\mu = 10^{10^{10^{10}}}$, that is an absolutely huge number compared to the variance, meaning, a single observation would almost certainly be within $2\%$ of the true value.
At the other extreme, what if $\mu = 0$? Then it does not even make sense to speak of the percentage error, because it will always be infinity, as a result of division by $0$.
This dependence of the required sample size $n$ on an unknown parameter $\mu$ is highly undesirable in statistical practice, because it is effectively useless for the purpose of inference. If you don't know $\mu$, you cannot calculate $n$; if you knew $\mu$, you would have no need to infer its value through estimation.
A way to "fix" this question is to change the error criterion to a value that is not a percentage; e.g., "what is the required sample size such that the point estimate is within $0.02$ of the true value with $95\%$ confidence? In this way, the error is measured on the same scale as the observed data. So if $Y$ represents units of length, say centimeters, then an error of $0.02$ is equivalent to $0.2$ millimeters irrespective of whether $\mu$ is $10$ cm or $1000$ km.
I suppose it is worth discussing how to answer the question in the case where we want the estimate to be within $0.02$ of the true mean. This is equivalent to saying
$$\Pr[|\bar Y - \mu| \le 0.02] \ge 0.95,$$ and with the assumption $\sigma^2 = 1$ along with the observation that
$$Z = \frac{\bar Y - \mu}{\sigma/\sqrt{n}} \sim \operatorname{Normal}(0,1)$$
is a pivotal quantity, it follows that we require
$$\Pr[|Z| \le 0.02 \sqrt{n}] \ge 0.95.$$
Equivalently, if $\Phi(z) = \Pr[Z \le z]$ is the cumulative distribution function for the standard normal distribution,
$$\Phi(-0.02 \sqrt{n}) \le 0.025.$$
Thus
$$\sqrt{n} \ge \frac{\Phi^{-1}(0.025)}{-0.02} = \frac{-1.95996}{-0.02} = 97.9982,$$
so we require $$n \ge \lceil (97.9982)^2 \rceil = \lceil 9603.65 \rceil = 9604$$ to achieve at least $95\%$ confidence.