Coffee in first trimester

I am 4w1d and I had a small amount of a caramel frap from Starbucks. About 5 minutes later my stomach starting cramping really bad, but not lower, it was upper. As well as upper back. It still hurts but not as bad and did move lower stomach and stay upper back. Anyone else have this problem? Idk if it's the coffee or coincidence. I had some hot coffee uesterday and was gone.