Impostor syndrome sucks. Everyone has it. This industry is a bunch of nerds (and this part is not pejorative, I am one) who spent most of their lives being identified by how smart they were and they are culturally incentivized (and this one is pejorative, because tech culture is trash, but it's not your fault unless you perpetuate it, so don't!) to be desperate to win the approval of their peers by how bulging their foreheads are. You will not, statistically, win enough of these nerd fights to be Lord High Nerd Of All You Survey. You will feel dumb, you will feel clueless. And so does every person around you, including the prick who's sneering so you feel worse than he does. I am not intending to be dismissive of how you feel, because I've been there. But I have learned that there are much more important things to worry about than "oh noes, not all of the biggest tech companies don't think I'm A-1 and the stunted people around me kinda suck." You will, I promise, be fine.
You can change the game. I embrace not knowing stuff, and I'm a consultant so I'm supposed to be all-knowing. Clients blink in surprise (and appreciate) when I say "I have no idea about that." I just go find the answer. Because I'm not dumb. Neither are you.
I have a 33% offer rate (3 for 9) when talking to GooAppFaceTwitrosoft. I rejected those three offers. And it's funny, right? When I wanted them, they didn't want me. When they wanted me, I realized I didn't want them. But you're inside, at one of the big companies, right? I would hope that you know the game: if you keep applying to these places, if you keep trying, you will eventually get an offer. And if you know the game, you should be able to find the perspective to laugh it off. But I'd bet money you probably don't really want one, at least for the reasons you state.
(edit: So I skated over the "death doesn't seem so bad" thing on first read, and that's red-flaggish. I am not going to flap my hands about depression, because I not a head doctor and don't even pretend to be one. But you should talk to someone, 'cause if your brain chemistry tends toward dark places it's worth getting checked out, and the advice regarding the Suicide Prevention Lifeline if you're feeling really bad is great advice. But, for serious: you will be okay if you give yourself a chance to be. Nothing in tech is worth breaking yourself over.)