From where I’m sitting, it looks like death should not be the end in that case.
You can’t perceive the passage of time when you are dead, so you’re just going to experience dying and then immediate rebirth after the countless eons pass for that rare moment where entropy spontaneously reverses to form your mind again.
I’ve actually thought of this exact scenario before and for selfish reasons I hope it’s true, there are many parts of my life I loved and parts that were horribly heartbreaking but I’d do it all again if I could. But that’s just me now, will have to see how I feel later!