Unfortunately it's often seen as easier to change the former than the latter (which seems to perhaps be developed throughout childhood and one's upbringing and former experiences), but I would perhaps try to brainstorm if you can ways to improve your own subjective perspective/lens itself. If you quit your prior job, and with your new one hate and want to quit it/think your discomfort for it'll get you fired, maybe you could try to reach out to those around you in your peer network (maybe a former dev coworker or boss or a current coworker and try to get their perspective on things). Maybe there's something with your own ability to tolerate discomfort or find solace in good aspects of your jobs that you could find.