Then I remember the following.
1). I'm employed, my manager is happy with the work I do, and I make enough money to pay my bills, have savings, and live in a decent place in a safe neighborhood.
2). I don't have to be better than everybody else at my workplace. I just need to find an area where I can contribute.
3). When I apply to other jobs I get some positive responses. I know people who would be happy to recommend and hire me if they can.
4). I've met more than a few people who can talk about data science like they can solve any business problem under the sun, but cannot actually do much of anything except talk.
5). There is plenty of stuff I read on HN that is clearly wrong or exaggerated.
I think the key is to focus on what you need today to stay employed and have a realistic assessment of your weaknesses and where you want to go. Then figure out what you need to get there and slowly work towards that that. I don't need to know Rust, Go, and Vue.js because they have nothing to do with my job or where I want my work direction to go. If they day comes when I do need to learn that stuff, I'll learn it.