Your emotions are not a statement about your moral worth as a person. In particular, feeling angry doesn’t make you a bad person. It’s an emotion that’s often stigmatized or seen as terrifying if you’ve grown up around people who hurt you with anger or expected you to suppress yours, but at its best, anger is a sign that you need to stand up for yourself. It can be a driving force to make change in your life.
Feeling hurt doesn’t make you a bad person either. Hurt is just hurt; you cared about something, and it didn’t come out the way you wanted it to. You’re not terrible if someone yells at you and you feel bad about it.
All of your emotions have value, and none of them make you bad or broken. Your feelings are neutral information about yourself and the world around you. They’re clues, not judgements.