Take the class at a different school. The one you’re at sounds horrible. How many weeks are in the quarter? That may just be too fast paced for you. That doesn’t mean you’re in the wrong major. If they can’t figure out how to support women in STEM, you may just be at the wrong school.
Have you seen a tutor? What’s the last math class whose material you felt comfortable with?