I'm so sorry you had that experience.
I've been in similar, thought milder, sermons, and I walk out if they start going down that path. Honestly, I have also stopped attending those places. I drive 30 minutes to church, but it's to a place where grace is preached for all. It's worth double the gas money for me to not have to sit through a triggering sermon, or to be part of a body that advocates harming children.
I am sure you'll get wise words from other mamas.