Thank you for your query on Healthcare Magic,
Your child seems to have Gastroenteritis
which may be due to a virus.
You can give probiotic like lactobacillus
sachet once daily.
Continue breast feeding frequently.
Give sips of oral rehydrating solution like Pedialyte to prevent dehydration.
Don't give any medication without prescription of a doctor as your child is having G6PD deficiency
Consult your Pediatrician
for examination and medication.
Hope I have answered your query.