Following your dreams is not an easy thing to do, it's even more difficult if you have a family to feed. So when you lose your job and want to pursue your dream career, the first thing you need to do is recheck your current financial status and see where you stand. If you have enough savings that help you survive, with the family, for at least a year, and if you are sure that if you get into that path, you will at least be able to reach somewhere, then I would say go for it.
However, if you have no savings at all and you have only been covering all the expenses with your salary, you will need to find a source of income first before you get into anything because that's essential, no one will help you take care of your family by providing financial aid for a year or so because if you get into something new, you will need time to learn everything to the extent where you can make a career out of it, you see, passion and career are different things. You might have a passion for something but whether or not you can make a career out of it is a different thing.
So, once you have evaluated this thing and have made your decision, your next action will be based on that.
If you have savings and want to pursue your dream career, start doing research and finding methodologies that you can utilize to make things work in your favor.
If you don't have any savings, you should look for a source of income first, be it a job or anything that can help you run the kitchen because you can't make your family survive for what you want to achieve.
This must be a good piece of advice, you sound like you have some experience in this.
It is a harsh reality that it is very difficult to fulfil dreams with a family, especially when you are unemployed. In this era of inflation, no matter how much one helps, a whole family cannot be fed. If you have to choose between working and providing for the family or chasing your dream, you will be compelled to choose the first because it's more important and it's your responsibility.
Another major problem in today's era is unemployment, well-educated and skilled people are not getting quality jobs. This is the reason that when an educated person gets even a menial job, he is afraid to leave it and even think about it.
Therefore, I would say the first effort should be to establish yourself first and then start a family life to avoid all these difficulties.