I think my comment allowed for that hard truth to be confronted while also offering an alternative explanation (that it is possible to be unlucky a few jobs in a row with some colleagues who just make life difficult)
If you walk into a room and it smells like dog shit, a dog probably shit in that room.
If you walk into a second room and it still smells like dog shit, there might have been a dog that shit into both those rooms.
If you walk into a third room and it still smells like dog shit, check the bottom of your shoe.
In that (shitty) metaphor, it might just be that your office building (~i.e. the software industry) is next to a sewage plant (i.e. its problems), regardless of the state of your shoes.