What you've described is pancreatitis after MJ, but my bet is a stuck gallstone caused it, and you likely wouldn't have got it otherwise.
Mine happened 14 years back, also from stuck gallstones, and the gallbladder came out afterwards, so it's ancient history. Earlier this year I tried to get on MJ. Each time I filled in an online consultation and answered the pancreatitis question truthfully, I got a refusal: 'sorry, we can't offer you treatment'.
Official guidance doesn't block anyone with past pancreatitis from MJ, yet most pharmacies can't be bothered and just refuse everybody with it on record.
I'm so grateful my partner walked in from work one evening saying he'd be doing 'fat jabs' (his words). No way was I staying behind, so if he was on it, I was too, and I lied during the consultation. Best choice I ever made, MJ. For ages I feared my GP would be told and object, and my prescription would be cancelled. The pharmacy wrote to my GP asking for any reason I shouldn't have it, and they never answered.
What you do is your call. Mine was long ago and my gallbladder has been gone for years. If yours was recent, restarting MJ might be unwise, because pancreatitis leaves damage that needs time to mend. Afterwards I had a swollen spleen plus a bit of liver damage, both better now after the years. I've still got varices in my oesophagus, so every year they send a camera down, and it always shows my stomach lining eroded too. Doctors tie those to the pancreatitis and the gallstones 14 years ago. So losing your gallbladder doesn't always end the fallout from gallstones and pancreatitis