Suddenly something put the thought of loss of memory into my head.
Suddenly, I had the idea of memory loss.