Hello
As you mentioned that you are having pain in the heart area ( according to you ) .
Doctor told you that this is a pain due to acidity and advised topcid 40 mg i.e
pantoprazole 40 mg on empty stomach .
You got complete relief.
Now , read this carefully , you are just 24 years and there is remote chance of any
heart disease , if , it would have been , your doctor had identified it.
These measures may be useful for you.
Try raising the head of the head of your bed about 4 inches with blocks . It also might help to avoid eating or drinking for 2-3 hours before you lie down. To help control stomach acid one should not drink alcohol or drinks with caffeine in them or eat chocolates or spicy or greasy food or pizza or burger.
Also take some
antacid but if symptoms are sever you may need drugs like pantoprazole 40 ( topcid or topsid ) on empty stomach .
Excessive food , tension or
stress are other reasons responsible for hyper acidity , so , if possible be careful .
Hope these measures may be useful for you.
Good luck.