In this case, I’d like to suggest a quick checklist instead of a detailed post with examples & background. Here are some points. Feel free to add more.
1 - Are these really problems or only I think so?
2 - Am I the problem here? (talk to others for sanity check if needed)
3 - It actually sucks, but what could I do to make things better? (as if my life depended on it)
4 - Who can help me to fix things & how to get their support?
5 - Is this unpleasant situation temporary?
6 - Do I have enough savings, plan & good prospects if I were to quit immediately?
7 - Am I actually suited for this job/career? (hard to answer)
Be friends with a diverse group of people and not just people you are comfortable or familiar with. By diversity, I mean diversity of thought also besides race, religion, genders etc. That way, you’ll have many & diverse sources of advice in situations like these. Don’t be in a group that echoes your sentiments & coddles you all the time.
Even when you like your current job, try to apply to other jobs and go for interviews once in a while. That way, you get a better idea of your position & value in the market. It makes it easier to switch jobs if that’s really needed.