Hi and welcome to HCM.
It sounds to me like gastritis
or pancreatitis attack. Sometimes gastritis can be very intensive and cause stabbing pain
and bloating. If your pain decreases then you should wait and see is there any progression.If yes,you should do endoscopic examination of stomach and duodenum
and take some antiacid medicines. If you have gallbldder problem then it could have been acute pancreatitis
which can be rule dout by specific blood tests. Wish you good health.