Well, you're young. That argues against a heart issue. On the other hand, you're male, which means that even though you're young, you have a bit more risk than a woman of the same age. And there's the family history, so I'd give you plus-two on the risk scale.
However--and this is important--any food or the alcohol in a couple of beers right before bed can trigger GERD, which you can and should google. It's not usually dangerous in the young, but an acid-burnt esophagus can become dangerous (pre-cancerous) with time. Mostly, people should avoid food and booze before hitting the sack for this reason.
Also, alcohol disturbs the natural sleep cycle, so it's actually a cr*ppy sedative. Do you have trouble sleeping or relaxing? If so, there are safer methods to deal with this problem.