In any case, the risk of two ibuprofen tablets at night, or even every day, is small. A person with a history of ulcer ...
Maybe the headache starts before you go to bed, so to ward off a deathly hangover the next day, you pop an ibuprofen or two.