Don't know if you have a therapist or just a good friend, but if it were me, I would have someone lined up that I could call after class when I am feeling anxious if this topic comes up. Just having someone to talk to and process my issues is always helpful for me.
And remember, you are not obligated to own someone else's or society's reality. You might have a mantra to take with you to class that counters the idea of suicide ... something like "Today, I have chosen life". You don't to use this one, though ... pick one that feels real for you.
This triggering might not necessarily be a bad thing. It might be a gateway to some necessary healing for you.