Here is a probabilistic argument for OP's statement, showing that the expectation is finite for $a>e$ and infinite for $a<e$.
Setting. Let $(\tau_k)_{k\geq 1}$ denote a sequence of i.i.d. $\text{Exp}(1)$ variables. Let $\mu=\log a$ so that $a = e^{\mu}$, and consider the sum
$$ S_n = \sum_{k=1}^{n} e^{(k-1)\mu - X_k}, \qquad X_k = \sum_{j=1}^{k} \tau_j. $$
Noting that $e^{-\tau_k}\sim\text{Uniform}(0,1)$, this is the same setting as in OP. Then we are interested in the expectation of the stopping time
$$ N(x) = \inf\{ n \geq 1 : S_n > x \}. $$
Case $a < e$. In this case, SLLN tells that
$$ \sqrt[k]{e^{(k-1)\mu - X_k}} \longrightarrow e^{\mu-1} < 1 \qquad\text{a.s.,} $$
hence $S_n$ converges a.s., say, to $S_{\infty}$. Then by noting that
$$ S_{\infty} = e^{-\tau_1}( 1 + e^{\mu} \tilde{S}_{\infty} ) $$
for some $\tilde{S}_{\infty} \stackrel{d}= S_{\infty}$ independent of $\tau_1$, it is easy to show that
\begin{align*}
\mathbf{P}(N(1) = \infty)
&= \mathbf{P}(S_{\infty}\leq 1) \\
&= \int_{0}^{\infty} e^{-t} \mathbf{P}\biggl(S_{\infty} \leq \frac{e^t - 1}{e^{\mu}} \Biggr) \, \mathrm{d}t > 0.
\end{align*}
Therefore, $\mathbf{E}[N(1)] = \infty$.
Case $a > e$. In this case, $\mu > 1$. Define the stopping time $T$ by
$$ T = \inf\{k \geq 1: (k-1)\mu > X_k\}. $$
Then SLLN shows that $T$ is finite a.s. Also, since $S_T > 1$ holds, we have $N(1) \leq T$. Hence,
\begin{align*}
\mathbf{P}(N(1) > n)
&\leq \mathbf{P}(T > n) \\
&\leq \mathbf{P}((n-1)\mu \leq X_n).
\end{align*}
Using $X_n \sim \text{Gamma}(n)$ and applying the Chernoff bound, we can show that the last line is further bounded by $e^{\mu-1-nI(\mu)}$, where $I(\mu)=\mu-1-\log\mu>0$.1) Consequently,
$$ \mathbf{E}[N(1)] = \sum_{n=0}^{\infty} \mathbf{P}(N(1) > n) \leq e^{\mu-1}\sum_{n=0}^{\infty} e^{-nI(\mu)} < \infty. $$
Addendum. Here is a numerical simulation of $\mathbf{E}[N(1)]$ as a function of $\frac{1}{\mu-1}$, where $\mu = \log a$ and $a > e$, using $10^5$ samples:
This seems hinting that $\mathbf{E}[N(1)] \sim (\mu - 1)^{-1}$ as $\mu \to 1^+$ and hence $\mathbf{E}[N(1)] = \infty$ for $a = e$, although I have no idea how to justify this result.
1) My original bound was of the form $\mathcal{O}(e^{-\varepsilon\sqrt{n}})$, which was a consequence of CLT-like estimate. However, large deviation estimates gives better result. Thanks @Pierre PC for pointing this out!