Leave bed after 20 minutes of restlessness.

That way, you avoid creating a connection between your bed and feelings of frustration. Do something relaxing in another room in low light, then crawl back under the covers when you’re sleepy again.