You recommend not running, but if you're not in a position to change some of these core practices, moving to a better situation may be the best option. I think one huge quality-of-life factor is working on a team with strong technical leadership. That could be a tech-led company, or it could be an in-house engineering team at any company where the team's director has clout outside the engineering team, generally based on a history of delivering value to the broader org.