Your pain deserves better attention, and to blame caffeine is a stretch. It is the ability of caffeine to reduce pain as many pain relievers contain caffeine.
The aortic valve (one-way normal blood flow from the ventricle into the system) and normally has 3 leaflets that close over the valve opening to prevent back flow. A little later in life it may cause a problem as often the condition is related to a syndrome that includes the aorta root enlargement due to the tissue abnormaility.
If there is an abnormal back flow of blood into ventrical rather than go into the system, the reduced cardiac output can cause chest pains, etc. But your post doesn't indicate any valve regurgitation so that may not be your problem?!