Description
When a user attempts to upload a font file that is broken, the font library uploader tab apparently crashes.
Inspecting the console, an error is thrown but fails to be caught.
Step-by-step reproduction instructions
MacOS instructions
- Remove the first 100 bytes from a font file:
tail -c +100 OpenSans-Bold.ttf > _broken-font.ttf
- Open the Font Library uploader tab via the site editor
- Attempt to upload the broken font file
- The uploader will show the upload progress bar for the foreseeable future
Screenshots, screen recording, code snippet

Environment info
- WordPress 6.4
- Gutenberg trunk @ 619f0a3
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Description
When a user attempts to upload a font file that is broken, the font library uploader tab apparently crashes.
Inspecting the console, an error is thrown but fails to be caught.
Step-by-step reproduction instructions
MacOS instructions
tail -c +100 OpenSans-Bold.ttf > _broken-font.ttfScreenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes