At this age, she's probably not deliberately trying to hurt herself but she's just too young to express herself and she can't handle the frustration. You can try to redirect her into other ways of expressing her anger and upset (building a block tower she can knock down, pounding on a pillow pet or ...