There are numerous reasons why the male-female ratio (about equal in young adulthood) gradually favours women.
Chocolate and other caffeine-containing foods function as stimulants. They make it more difficult to enter deeper phases of sleep and reduce the quantity of REM sleep you obtain.