Is it possible to have an endometrial biopsy while menstrating?

Yes, but... It is possible, but your doctor is more likely to just get blood. Discuss it with your doctor.
Yes . Sometimes women have so much unpredictable bleeding, biopsies while bleeding are unavoidable. The results should be reliable.