My problem is how to stay in science, and outside of academia? Not sure.
In CS this is trivial, as long as you're doing science that is still relevant to the world and not working on some inane corner of some pet project from the 1980s that people should've stopped thinking about a long time ago :)
Or maybe we're misunderstanding one another. By "inane corner" I mean "can't even fill a single session at a 100 person specialized conference". Even in the early 2000s NIPS was larger than I'd consider "inane corner sized".