Thank you for your query.
It is very difficult to say whether the symptoms of your child were due to GERD
or to the heart condition without knowing the exact heart condition. I suggest that you get your son examined by a cardiologist who shall run a battery of investigations after which the exact condition will be known.
I hope I have answered your query to your satisfaction.
Wishing your son all the best.