Chrome itself is emitting these messages, and there is no way to block them. This is a function of how chrome was built; whenever a ResourceFetcher object attempts to fetch a resource, its response is passed back to its context, and if there’s an error, the browser prints it to the console – see here.
Similar question can be found here.
If you’d like, you can use a chrome console filter as this question discusses to block these errors in your console, but there is no way to programmatically block the messages.