Side pain?

Sometimes out of no where I’ll get side pain. It’s a sharp ache about two inches up from my hip. It gets worse after I urinate. Does anyone know what it could be from? It’s not right before or after my period. It happens all the time. In the past the pains be so bad I’ve almost passed out. I’d just like to know why it’s happening or if I’m just crazy