Google Can’t Access Your Site Due to Robots.txt File Fetch Error • Google Search Console Robots.txt File... outlines how to troubleshoot Google Can’t Access Your Site Errors
Robots.txt fetch error is actually a common type of error seen in Google Webmaster Tools reports, and most websites encounter this issue due to creating incorrect robots.txt directives.
How to write and submit a robots.txt file
https://developers.google.com/search/...