Hey there, @HussnainINS
Thank you so much for reaching out. I see that you are now having successful builds (hooray!) If you encounter this issue in the future, I suggest you update to the latest version of Gatsby, 4.13.1. Here is a thread where you can read more:
4.13.1