I have a very hard lump inside my anus. What can it be I'm in my 20s female. There has been some discharge and bleeding?

Thrombosed pile. You may have haemorrhoids, and now a clot in the dilated veins causing a hard bump ; discomfort. Intermittent bleeding may be evident. I'd recommend a checkup with your gynecologist or your primary care doctor for treatment.