I can relate.
I got my pacemaker, CRT-P specifically (it just keeps my heart beating), back in 2011. I managed to develop atrial fibrillation, and cardioversion (shocking the heart, specifically the atrium, into a regular rhythm) lasted almost a year before my heart fell out of rhythm. Three cardiac ablations (attempts to burn the nerves that might be causing the misfiring of the heart) later, each one getting less and less effective, and my only choice was to get a pacemaker installed.
It was essentially done as soon as possible, but I was depressed about it until the operation was over. My heart (ha ha. Not) wasn't in it evidently, at some point I was crashing with a low blood pressure. They had to put in an arterial monitor (and drugs, I'm sure) to get me back where they wanted me. I had become conscious a bit, and I felt the nurse/orderly/whoever pull the monitor out of my arm, although I didn't understand what was going on. I hadn't even opened my eyes at this point.
I'm OK with it now, but I'm also looking at least three replacements for new batteries in my life time now. Those are not what I am looking forward to. Although the company that makes my pacemaker just came out with one that can be inserted much like a stent with a cardiac catheter. No more hard not in my chest, and an easier recovery (at least the next time...). No incision to worry about infection, no worries about putting your hands over your head, once the groin poke heals, I should be ready to go as if nothing else happened. And it's battery lasts longer too.