When this happened to me I decided to just tell my manager the truth. He honestly didn't even realize I was having issues and he reacted to it by firing me. Mentally, I was in a place where I was kind of happy that my suffering can finally end. On the other hand, if I had just kept my mouth shut I could've probably zombied my way through for a lot longer.
Just a heads up to anyone reading this and feeling like they can't speak to their manager when they're having issues with burnout or stress: not all managers will react the way parent's did, and depending on where you live (pretty much any first-world country outside the US?) it may be outright illegal to fire you like that.
I didn't get fired on the spot or anything. He put me on a PIP (performance improvement plan). If you fail that then they use it as the paper trail to fire you.
Yup. Most companies have HR and they know exactly what to do. Your manager will often be compelled to tell their boss, so just relying on your relationship with your boss is a risky move.