I've heard about this! thats so interesting. The only real insomnia I will have nowadays comes maybe once per month where I wake up and my mind runs wild with ideas and epiphanies for an hour or two.
Might be related to what you are describing. Its usually a beautiful headspace. Some of the clearest thinking I do outside meditation.