Getimagesize(): Corrupt JPEG data: 1 extraneous bytes before marker

Hello all,
I’m having a hard time with an image which is throwing that error 500 : getimagesize(): Corrupt JPEG data: 1 extraneous bytes before marker

Here’s the file so you can have a look at it:

As I’m displaying a list of books, if there’s one error like that then it’s the full page is not available due to that error on a single image.

I can’t really expect user to check all images. Is there a way I can catch that error when it happens on the front so at least I just don’t display that image but the rest remains displayed and I don’t get an error 500 please?

Thanks for your help,

Hello, if it may help, here is the stack trace I get thanks to Sentry

/kirby/src/Image/Dimensions.php in Whoops\Run::handleError at line 239