They're only human, and humans fail! [substeps] You can say something like " everyone fails. There's people in this class who have failed an exam.
[header] How to offer encouragement to someone who has failed an exam or test [title] Remind them that everyone fails at some point. [step] Failing an exam might be especially hard for someone who has never failed one before. Remind them that everyone fails at some point, even if they don't talk about it.