There are multiple ways of how you can address this problem. First, you need to figure out the root of the issue - while some headaches are a one-off thing, others are a bit more persistent. It's a good idea to start by normalizing your sleep schedule, and lowering your stress and anxiety levels throughout the day. Then, you should definitely look into upgrading your bed, and other sleep products, too.