The GM sounds like she’s
Young (emotionally if not mentally or physically)
Bright
Creative
A bit under socialized.
A bit detached from reality.
Think about it like this: In ten years, if this person gets their emotions under control, gets some real world experience and can stop yelling at people (i.e. probably gets over the fact that some of her self estimee is attached to the fact that she feels she’s smarter than others) she’ll be a brilliant DM.
What she needs, really, from you, is patience.
People who are defensive (especially the puzzlemaker type who spend hours thinking things through and are trying to be internally consistent) aren’t going to react well to overt criticism.
In order to be patient you are going to have to detach yourself from the situation a bit.
Don’t take the game as seriously as you are. If your characters die, or you spend an hour on a puzzle just relax and yuk it up a bit.
When she throws something in weird, in character, have your character make a single, in character crack about something (like a one liner in a movie) and move on.
If the puzzles get too tough just stop and have fun roleplaying with your friends in the room.