Pain left underneath my ribs while swimming

So ive been having pains of ik swimming in a way i cant keep breathing normally.

Its like a stab underneath my left ribs on the inside. This happens especially when i do stuff where ik not breathing constantly because im going underwater.

If i stop for a few minutes and catch my breath its fine, but others dont have this problem.

Anyone have some advice in what im doing wrong?