Kindly don't self medicate and ibubrufen shouldn't be had like that and there should be a minimum of 6-8 hours gap between doses. I would advise you to meet an orthopedician so that you can be examined and undergo investigations such as X-Ray, CT(if indicated) to find the underlying cause and have it treated accordingly.
Next Steps
Follow the steps as advised
Health Tips
If condition persists or worsens visit the orthopedician at the earliest