I personally would not see this as a near death experience. I can imagine it must have been stressing and a negative experience subjectively, and it may be (although impossible to judge for me from a distance) mistakes were made. But in the end you and the DM managed to bring the dive to an end that did not result in an accident. Diving is actually a very safe hobby, and this in part because things can go wrong but there are still options. Sure, one should not take this as encouragement to continue pushing all boundaries. But why not step back and analyse, learn, and enjoy in future? I would not end a hobby on such reasoning. There will for sure be dives that you can enjoy without negative feelings. Just proceed slowly and build confidence again?