Hey I also get pain like that but it’s not in the ribs it’s in the middle of my stomach. It feel funny like u said like a knife in u. I went to a doctor that specializes with the stomach and I had an endoscopy and they said everything was fine. I couldn’t tell u what but maybe it’s a diet? I changed my diet and it helped a bit, I don’t get it as much as before. I rlly hope you get better <3