There is a possibility that you are bleeding from your gastrointestinal tract.
Spicy food does lead to acidity and ulcer formation.
You need stool evaluation to check for presence of blood(occult).
You need endoscopy/ colonoscopy as well.
Next Steps
consult a doctor online or offline for a thorough discussion of symptoms and to decide further steps of management
Health Tips
get investigated soon and change your food habits before further damage