Horses don't understand punishment, but instead will think that you've gone predator/want to kill them, if you start striking them as punishment!
OP, rearing means her feet are stuck. Just keep her moving forward, don't let her stop/think/rear. Or move her hinds around - it'll keep her focused on work + it's hard to rear while moving butt around.
And welcome to the Forum!