Start with the realization that unless you are just plain lucky (as a result of birth for example), security is something that is usually self made.
Regardless of the industry, wage slavery is insecure by design . The threat of losing your job is ever present and used as a motivating factor. Even when it is not being overtly stated, it remains an option that is never far away from being utilized.
Real security is control over your own destiny. And the only way I know to achieve a reasonable measure of it by running your own business. It doesn't really matter what kind of business but is best to pick something you have some interest in.
Just as an example, I know a guy with lots of financial security. He owns a string of barber shops and hair salons. He started out by learning to cut hair but nowadays, the only thing he cuts is checks to his employees --- while taking a sizeable "cut" for himself. If AI robots learn how to cut hair, he has the money to buy some, adapt and continue on with his business.