If a person experiences an involuntary state-break (Hadath al-Sabiq) during prayer, how long are they permitted to linger awake before their prayer is invalidated?

Invalidations of Prayer Part 3: State Transitions and Technical Breaks