Harry didn’t really die - his blood in the Dark Lord tied him to life.
After the Killing Curse hit him, Harry asks Dumbledore if he’s dead, and Dumbledore says no.
“Then … I’m dead too?’
‘Ah,’ said Dumbledore, smiling still more broadly. ‘That is the question, isn’t it? On the whole, dear boy, I think not.’
They looked at each other, the old man still beaming.
‘Not?’ repeated Harry.
‘Not,’ said Dumbledore.”
- Harry Potter and the Deathly Hallows, Chapter 35 (King’s Cross)
The reason for this, Dumbledore goes on to explain, is that the Dark Lord taking his blood tethered him to life while the Dark Lord lived, since Lily’s protection was then inside them both.
“He took your blood believing it would strengthen him. He took into his body a tiny part of the enchantment your mother laid upon you when she died for you. His body keeps her sacrifice alive, and while that enchantment survives, so do you and so does Voldemort’s one last hope for himself.”
- Harry Potter and the Deathly Hallows, Chapter 35 (King’s Cross)
Harry’s blood in the Dark Lord tied him to life, so he didn’t truly die. He was further helped by being the true master of the Elder Wand. It didn’t want to kill its master, so the Killing Curse it cast against him wasn’t as powerful as it could have been. It had nothing to do with the Resurrection Stone - that only brings back the “shadows” of people who are already dead, it doesn’t prevent death.