I think I'm burned out, but I'm not sure. Sometimes I think getting laid off might be good for me, but being in my mid-forties worries me when Tech is so ageist.
Unfortunately if you're asking this of yourself you are almost certainly burned out. Speaking as someone currently thinking the same thing -- all the times in my career where I was powering through this sort of thing never crossed my mind, it's only come up more recently as the hours have begun to climb.
Being middle age is a risk for sure, but also keep in mind you have only one or two big changes left before you're done. It matters more to get into a spot that can take you where you need to go.
After 4 years at AWS, and ~20 in the industry, I was utterly burnt out, and needed a break. So I took two years off.