Yeah I work in Tech as well. If you need money to get started with investing, then tripling your pay for a few years is something you can consider. On the other hand you will miss a lot of other things like time with family, time for investing etc.
I don't think you are ever stuck if you have a house with a low mortgage rate. You can always rent it out to someone, and then rent a place for yourself if you have to move.
Would you have stayed if they replaced your boss with a nice person? Maybe. But not only the boss was bad but also the skip level boss was bad. If they are both replaced, I may stay for a while longer.
Would you have stayed if they doubled your salary? Maybe. Imagine you have to be on call every 4 weeks, and every week you are on call, you can only sleep 3-4 hours a night. That's really bad for health. Later we may have to pay a large medical bill to fix ourselves. Also our lifespan could be reduced by 5 years. That's something hard to say right now but will likely happen down the road.
Would you have stayed if they let you spend 1.5 hours per day investing while at work? That's a wrong assumption to have. What about time with family? What about time to sleep? If i don't even get allowed to sleep, how can I get time for the other things?