Sorry to hear you are in this situation. I've been there as well, but sticking in the middle of this is more than nerve wracking and a serious health issue... First, I agree that AI will be shaking up several jobs. But I think that lawyers will also have there aces up the sleeves to keep their business running. Nonetheless, working as one isn't very healthy as well as you always are under pressure to gather enough billables... Niche is always a solution to the mass grinding. Secondly, an advice I once received: looking back at your past jobs, was there something you enjoyed doing besides your main tasks and clocked voluntarily some extrahours, because you were passionate about it? Like the controller, who stepped forward and got a health and safety training, without being paid extra for it, the controller, who wrote a small software tool for easing work processes, the software engineere, who created an onboarding portal for new employees.. Sometimes, people realize, that they already did something, they really enjoyed but never thought about to make it a focus and not just somethin "useful, besides no one else takes care of it"... This hint really helped me to realize, what I was actually good at all the time even though it had nothing to do with my day job and my previous roles.
I wish you all the best in this current situation and hope, things will fall in place quite soon.
I really enjoyed the process engineering and problem solving of running my own companies. It's how I ended up managing a small team of engineers. I even lived in China for a few months getting our production setup.
Unfortunately, most companies don't seem to care about this experience or think because it was my own org (with references) it doesn't stand up to actual "PM" / "management" experience.
I wish you all the best in this current situation and hope, things will fall in place quite soon.