I note that when a search field is focused, a screen reader is unable to access the network offline message. One can only move focus to the visible illustration, which includes the aforementioned odd alt text. I.e., when the search field is focused, it is not clear at all that a lack of network connection will disrupt the experience. If one dismisses the virtual keyboard, then you can move screen reader focus to the error message and retry button. This experience is present within the GIF library, free stock media, and editor media insert flows.
This is related to the following screens:
GifMediaDataSource - adding to media library from Tenor
StockMediaDataSource - adding to media library from free photo library
MediaLibraryDataSource - adding media to a post from WP media library
As mentioned here:
This is related to the following screens: