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.
Nothing will cause a new "you" with your current memories and personality to be recreated, but new blank slate subjects are being created all the time, which we all started as.
https://www.naturalism.org/philosophy/death/death-nothingness-and-subjectivity