The problem is, there is no evolutionary reason to believe the claim
Some researchers believe that near-death experiences are a biological mechanism like the fight-or-flight response, a means of pretending death to avoid a predator. They call it thanatopsis: …
Two problems arise from this analysis:
➤ Implausibility: Most of the people who have survived to tell of near-death experiences are not “death-feigning.” They are clinically — and, in most cases, involuntarily — dead.
Modern medicine can bring people back from actual states of death or even induce such states, for surgical purposes. That’s why we hear so many reports of near-death experiences these days.
There is no physiological basis for the belief that, in general, humans can just “play dead” when it suits us, as can marsupials like opossums. Many might wish we could but we can’t. …News, “Claim: “Evolution” explains near-death experiences” at Mind Matters News
Takehome: Humans who have near-death experiences are not “playing possum”; they really are clinically dead but can be resuscitated by modern medicine.
See also: Do only Western religious people have near-death experiences? Even famous atheist philosopher A. J. Ayer had a near-death experience. Near-death experiences occur across cultures and the description differs but the outcomes are similar: a changed emphasis in life is the most common.