Endoscopy should be done only on the recommendation of a gastroenterologist. Regarding bad breath, there can be many causes other than oral hygiene. Sinusitis can cause it and also stomach problems, acidity etc.
Next Steps
Consult a doctor to diagnose your problem correctly
Health Tips
Continue regular brushing and use a dental floss