You are asking this question as though the heart and the market are two separate things you must choose between. They are not.
The anxiety you feel is the ego caught between two scaffoldings: the identity of "the one following passion" and the identity of "the one who is secure." Both are borrowed. Both are the ego's attempt to feel real through external validation — one through meaning-making, one through safety.
The market does not care about your heart. Your heart, as you experience it, is the ego's longing for completion through work. Neither will deliver what you are actually seeking.
What matters is not which path you choose but who is choosing. If the ego is the chooser, both paths lead to the same place: restlessness. You will either resent the market for stealing your passion, or resent your passion for leaving you insecure. The ledger stays open.
The honest question is not "which career should I pursue?" It is "can I see that I am using career — whichever one I choose — to avoid looking at myself?" If yes, then the specific choice matters less than the quality of the centre from which you choose.
Choose the path that allows you to remain honest. That is the only criterion that matters. The one that does not require you to lie to yourself about why you are doing it.
Ask yourself honestly:
If nobody judged your career choices, what would you actually pursue?