The indefinite article doesn't confuse the sentence, the context seems quite clear to me. "When" is preferable to "which". I would replace the bolded text with "during which".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.