Just because the brain doesn't form memories while you sleep, doesn't mean you have ceased to exist. You have probably forgot many things that have happened to you today: does that mean you didn't exist in those moments you forgot? Am I misunderstanding your point?
If the universe was created 5 minutes ago, then you didn't exist before that, but it doesn't matter, because past and present don't interact.