Ditto to ECT safe...
And I'll take the other angle as someone who has DID and was electrocuted in really unsafe ways more times - which is nothing like those treatments - and tell you that kind of memory loss ALSO doesn't happen ;)
As in other than ECT electrocution produces memory loss. And haze. And fugue that doesn't well lift. But not in the way of forget everything about your life forever.
And your heart not stopping is waaay more pressing concern than the memory ones.
Which ditto. Doesn't happen with ECT. Because well meaning & licensed MDs with medically safe equipment and operating procedures, as well as super small electro currents limited per session, with a lot of prep and supervised recovery time and post procedures checks & monitoring.
I don't have direct experience with ECT so cannot tell you more, there. But I considered it for depression multiple times, as before knowing part of my depression is a part of PTSD it's been assumed my depression is untreatable - so I spent time talking to people who have & psychiatrists a lot.
Plus as I said - grizzly trauma histories, perma DID while living through them background. ;)
And?
To make you literally drop your life to that extent you think would be great you'd have to have other brain injury going on... and you wouldn't get some clean slate, new life, from that. You'd be a gibbering mess or worse, catatonic. For the rest of your life.
Even if by chance something was exactly the type to produce memory loss 'just' for long term memories you wouldn't only erase the trauma. You'd forget stuff like how to button your shirt. Drive. Open a fridge. Ride a bike. Do your groceries. Brush your teeth. Walk.
Because memory ain't simple cut and paste... and traumatic memories neither.
Do therapy. Run of the mill any therapy. Do CBT.
Get a hang on your trauma...
Don't add new one to it.
Much less to your head.