This happens on API 27+28 if loading TIFF or WebP files. Using an InputStream with a read limit prevents this.