A lot of people with insomnia will spend an increasing amount of time trying to sleep. The problem is that remaining in bed while unable to sleep contributes worsening of insomnia. Art Spielman's 3P model shows how different combinations of predisposing, precipitating, and perpetuating factors contribute to insomnia.
Staying in bed leads to a conditioned association between bed and wakefulness with a corresponding decrease in bed being a discriminative stimulus for sleep. In fact, this association/conditioning problem is the target of stimulus control instructions for insomnia, which is a highly effective treatment for insomnia on its own, and when combined with sleep restriction, sleep hygiene, sleep education, and cognitive therapy. See the American Academy of Sleep Medicine Practice Parameters for a summary of the evidence.
The full set of stimulus control instruction for insomnia are:
You can use these instructions on your own, or seek treatment from a psychologist who knows how to do cognitive behavioral therapy for insomnia (CBTI). There are many online such as online-therapy.com. You may also go ahead and try it on your own, but follow it closely and give it at least a few weeks to work. If you have had chronic insomnia for a long time, you can't just change the conditioning overnight. Have patience, find something pleasant to do when unable to sleep, and remember that not everybody needs 8 hours of sleep per night.