I worked for many years for the Department of Labor, getting people jobs, working with employers, and working with people who had lost their jobs. I even spent some quality time closing businesses as manufacturing went into its death throes in the United States, and things have really changed. The ONE thing I would say to anyone is: Do not count on ANY job being permanent.
What seems to be going on with you is anxiety. You're trolling the internet, looking for something to worry about. A job is one of those great possibilities. If you are a person who has constant anxiety, you need to get treatment for your anxiety. If you do not get rid of your anxiety, and your job does turn out to be permanent, or if you inherit millions or win powerball and no longer need it, OR you you become too disabled to do your job, or you really are downsized by machines taking over and never find another job ever, either way, you'll be miserable a whole lot of the time worrying about stuff that never happens. The anxiety is what is causing your misery, not the likelihood of your job being done away with.
Right now, we have the technology to do every single job in the warehouse where you work robotically. It has not yet become profitable enough for them to make the necessary changes. The labor shortages recently have stepped up the pace of the replacement of people with machines. Been to the grocery store lately?
But you will get no guarantees from me that ANY job you can come up with is going to last forever. Looking for work is not usually a fun experience, particularly when you are broke and desperate. Being unemployed is almost always anxiety producing.Most people hate being in this position. But that doesn't mean you shop desperately for a job that never will end.
My advice to you is, firstly, deal with the anxiety. Second, keep working out mentally as far as acquiring new skills, advancing yourself at your job, thinking of what you'd like to do besides work there.
And third, do not financially over extend yourself, assuming that any job or source of income will last for any length of time. Don't buy vehicles with massive payments for 60 months if you don't have an emergency fund in place, don't incur a lot of debt so that you'd be ruined if you missed a couple of paychecks. THIS is the best form of anxiety free living you can possibly enjoy.