It sounds a little like the anime Charlote when the MC learns about his past.