It might be shocking but there is like a whole world outside of computers and even outside of your job.
Thing is I don't know on which one to focus on as a backup, I wanted to hear some ideas from the HN community
For some you may be even able to leverage your software skills.
If you have time, start developing your public speaking skills. This will give you the edge over other engineers within your company, especially if you know how to use it. Additionally, you'd be able to survive if you are layed off by either moving to an adjacent field (pre-sales, sales, CTO...etc) or just start attending and presenting at conferences. Hope this helps