Suppose $Y_i \overset{\text{iid}}{\sim}\text{Poisson}(X_i \lambda)$, where $X_i$ are known covariates. Give a condition on $\{X_i\}$ such that $\hat{\lambda}_{\text{MLE}}$ is a consistent estimator of $\lambda$, and give a counterexample of $\{X_i\}$ for which $\hat{\lambda}_{\text{MLE}}$ is not a consistent estimator of $\lambda$ when that condition is violated.
I have already showed that $$\hat{\lambda}_{\text{MLE}} = \dfrac{\sum_{i=1}^{n}Y_i}{\sum_{i=1}^{n}X_i}$$ and obviously $\sum_{i=1}^{n}Y_i \sim \text{Poisson}(\lambda\sum_{i=1}^{n}X_i)$.
In general, I know that the MLE is a consistent estimator, but I'm not sure how to go about showing that for this particular situation. I was initially considering dividing by $n$ for both the numerator and denominator to get $$\hat{\lambda}_{\text{MLE}} = \dfrac{\bar{Y}_n}{\bar{X}_n}$$ and we know $\bar{Y}_n \overset{p}{\to} \lambda\sum_{i=1}^{\infty}X_i$ (is this right?) by the Weak Law of Large Numbers (WLLN), so I would guess that if $0 < \sum_{i=1}^{\infty}X_i < \infty$, then $$\hat{\lambda}_{\text{MLE}}\overset{p}{\to}\dfrac{\lambda\sum_{i=1}^{\infty}X_i}{\sum_{i=1}^{\infty}X_i} = \lambda\text{.}$$ If $\sum_{i=1}^{\infty}X_i = \infty$, then I would guess the condition would be violated, though I wouldn't know how to show this.
Is my work correct? If not, how can I fix it?
Edit: I've just realized my work is definitely wrong, as $\bar{X}_n \overset{p}{\to} \sum_{i=1}^{\infty}X_i$ is obviously not true.