the wine promised by Allah (SWT) in Jannat will not make people drunk, nor cause any headaches.
Surah Al-Waqiah verses 17 -19:
17. They will be served by immortal boys (servants),
18. With cups, and jugs, and a glass from the flowing wine,
19. Wherefrom they will get neither any aching of the head, nor any intoxication.
Allah has made wine haraam for us as a way of testing us in our obedience. it causes sclerosis of the liver, depression, rape, drunk driving, violence in the household, headaches, and hangovers.
But since non-muslims drink wine in this lifetime, Allah is Just and He has promised that those who enter Paradise, because they would have abstained from wine in this life, He will give them wine which will not ruin one's health.