the error is resolved by firebase team on cloud firestore as per this article
https://status.cloud.google.com/incidents/iRvJVnsbz8T47ySiy5Hg
but i am still having this issue,
Hi @abmughal06,
Welcome to Google Cloud Community!
If you're still having an issue regarding the incident, you may contact Firebase Support team.
Upon checking the Firebase Status Dashboard, there's still on going incident from their end.