Hello. You are a young man so this is unlikely, but you need to be seen by your doctor. Make sure the heart is okay. I'm sure it is as again, you aren't the demographic for a heart issue but the combination of your symptoms is such that you need to rule that out.
Keep a food diary. When you have the bloat, what did you eat? Write it all down. This could be dietary related.