Primary, idiopathic insomnia doesn't really exist. It's almost always anxiety, although a few other mental and physical conditions can also cause it. But more likely anxiety.

That was my experience as well.