Similar experience here. Two redundancies so far in my career and one job I voluntarily left to do more study. The first redundancy was really difficult but taught me similar lessons. The second one was nowhere near as traumatic as the first.
Similarly, in both cases it took me a few months to find a new job. Reading HN you can get the impression that there’s something wrong with you because it seems like a software engineer shouldn’t be able to even cross the street without being offered a job. I think that really depends on where you live and how much of a network you’ve built. That can be difficult if you’re the introverted type.