If you get it more whilst lying down, it could just be heart burn, which is actually nothing to do with the heart at all.
Occasionally a small amount of stomach acid can move up in to the oesophagus (pipe down from your mouth to your stomach) and cause a burning sensation, called 'heart burn'...