Some things to consider:
-Options that aren't better (especially for non-developer role) or not entirely sure what area of tech you want to work for besides Google, Amazon but can't get in.
-Work that you may like to do if you were in a better more supportive team.
-It might not even be tons of money, but enough to pay bills and save a bit, and better paying then many other industries
-Not ready to start all over again especially if you had a new job every 2 years (sometimes with the same company but still, the context switching is too much now)
-Visa, not easy to move from company to company
But yes it does suck to question oneself all the time on whether to switch it up or not
But yes it does suck to question oneself all the time on whether to switch it up or not