fixes #39312 this is more consistent with other errors an invalid image should cause a validation error and not a server error
next/image