Usually, it is continuously produced in the joints. Sometimes, due to heavy exercises, it may cause local inflammation in the joint surfaces causing rubbing of cartilage part of the joint against each other.
Your body will reproduce the synovial fluid and the joints will normalize once the inflammation subsides. Nothing to worry.
If you feel the problem is persistent for a long time, you can take certain supplements which help in maintaining the cartilage strength and thus improve the joint quality.
Medicines are usually neutrceuticals. They won't cause any side effects.
You can go back to the gym once the symptoms settle down. Just take care not to over exercise, start the exercises and increase gradually over the days.
Next Steps
Start hot fomentation, take analgesic medicine if needed.
Health Tips
Avoid sitting down, avoid Indian toilet, avoid stair climbing and descending.