Stop in for a cup of coffee

Salt (sodium chloride) and nitrates (sodium nitrate) dump large amounts of sodium into the blood stream messing with the natural electrolyte balance of the body. Since a-fib and regular heart rhythm are influenced by electrolyte balance, a sudden change in electrolyte balance can flip the heart from normal rhythm into a-fib.

Which is why when I pound a couple bottles of water and go to the bathroom a few times I can get my rhythm back quicker.