Scott only learns about Stiles ever having panic attacks in 1.08, Lunatic (12:09-12:30)
Stiles: No, you were having a panic attack. But thinking you were having an asthma attack actually stopped the panic attack. Irony.
Scott: How did you know to do that?
Stiles: I used to get them after my mom died. Not fun, huh?