Is there something wrong with me??

I’m 17 and ever since I was 14 I’d have these random shock of unbearable pain on the right and left sides (just below the boob area) i would have those randomly sometimes 4 times a day and some times not have any for months, well I was on the toilet tonight and had this pain again after months and I could not move the pain can last anywhere from 10 seconds to 1 minute however I am unable to move due to the extreme pain when its happening