Was laid off in 2001 during the dotcom bust. Was self-unemployed buying and selling used docking stations and power adapters until 2007 when I aced a job interview for a small start up after mostly giving up the job search. Six months at the startup gave me experience in an in-demand tech stack that landed me a job at a large tech company that saw me through to retirement 10 years later.
If I had it to do over right now I would be creating something with AI as my own business - probably not very lucrative but good experience that might get you hired someplace.