Consider your current network of former colleagues and people you have met at conferences, etc. (Or social networks/slacks/HN, if that's more your thing.) If you don't have any place to start, look on LinkedIn (or your local alternative if LI isn't big where you are).
I'd start to refresh/revive those networks. That's the best way to find a job, in my experience (I am in the USA, not in Silicon Valley, fwiw).
If you have kept them up, then start to talk to folks about what they are seeing for people with your skillset or bigger tech trends.
If you have not talked to these folks, reach out and ask them for coffee (virtual or not). Ask them about their current challenges and how they are doing. People (myself included) love to talk about themselves. At this stage DO NOT ask them for work or about a job. You're reviving these networks and nothing will harm that like seeming desperate (which you are not!).
After a couple of months of checking in, you will have a better idea of the job market available to you without necessarily going through the normal job application process.
At this point, I'd start to let folks know you are looking to make a change. Find 3-10 companies where:
* you know someone (or know someone who knows someone)
* you are interested in some aspect of the company (tech, domain, team, approach to the problem)
* you have reviewed their jobs page or otherwise determined they are hiring for your skillset/experience
Reach out to those companies, preferably through your contact, and ask if they are looking for someone with your experience, or if they know anyone who is. (The latter is a nice escape hatch if they know it won't fit, and you never know what serendipity will bring.)Keep track of all of these (I like a simple spreadsheet, I'm sure there are other solutions). While finding a new job may be #1 on your priority list, it moves up and down hiring manager's priorities, so don't feel bad about pinging folks regularly. As companies move off the list (not a fit, or for whatever other reason) add new companies to the list.
Also, take the time to do research to find out what you should be paid. Lots of good articles here: https://fearlesssalarynegotiation.com/
This is going to be kinda painful, so prepare for that (as you mentioned, rejection will occur, as will bad interviews and tasks that take up your free time).
But once you are through, you'll have found a job where you are valued and a few months after that you'll wonder why you waited so long.