1) This goes without saying, but avoid startups. The more established the company, the better. Big corps are much more likely to respect a 9-to-5 workday and much less likely to call you at 2 am.
2) Try to work in a BTB product, not a BTC. BTB means way fewer customers, and fewer customers means fewer eyes looking for bugs, which in turn means a lower probability of finding an unexpected bug that needs to be solved yesterday. This sounds a bit cynical, but really isn't because of my next point:
3) There is an even better way to avoid bugs in production: have a very good and thorough testing system. When interviewing, ask about the testing process and how likely are they to detect bugs before a client runs the code. If you are looking for a job as a tester, instead ask the following: how automated are the tests and the build system? The more, the better.
4) This might sound bad, but it's my best piece of advice about jobs: look for a workplace that has lots of women (yes, they exist. For certain charitable definition of "lots", at least). Especially older women. Bonus points if you see pregnant women. Double bonus points if people are allowed to work less hours in order to take care of their kids, and you know a few people taking advantage of this situation (IDK how frequent is this in the US. Here in Spain it's common and regulated by law). Triple bonus points if there are many women in managerial positions. I realize that all of this sounds sexist, but whether we like it or not, the weight of childcare and housekeeping still falls mostly on the shoulders of women. So, if you find a company with lots of women, it usually means that the company offers very good work-life balance. As a bonus, you avoid one common source of stress: the competitiveness that pervades certain brogrammer companies.
There are also some points to consider that apply to every job: learn to forget about work the moment you exit the office (have something to do on evenings. Something for yourself, something not related to your job); try to make commute pleasurable (walk to your job, use public transport so you can read, etc); avoid romantic relationships with colleagues, especially people you work closely with; etc.
EDIT: typo.