Yes, it is completely valid for you to feel upset if your boyfriend's bad moods are affecting the way he treats you. While it is understandable that people go through tough times and may not always be their best selves during difficult periods, it doesn't excuse mistreatment or disrespectful behavior towards you.
It's essential to have open and honest communication with your partner about how you feel. Let him know that you understand he is dealing with things, but also express how his actions are impacting you and your relationship. Healthy relationships are built on understanding and support, and both partners should strive to treat each other with respect and kindness, even during challenging times.
Being supportive of your partner during difficult moments is important, but it doesn't mean you should accept mistreatment. It's essential for both of you to work together to find healthy ways to cope with stress and emotions, while also maintaining a respectful and loving relationship.
If you find that his behavior is consistently affecting your emotional well-being and the relationship isn't improving despite your efforts to communicate, you might consider seeking the assistance of a couples therapist or counselor. They can provide guidance and facilitate productive conversations to address these issues in a safe and constructive manner. Remember, your feelings and well-being matter in a relationship, and it's essential to advocate for yourself and your needs.