The graphics library configured in your install doesn't support AVIF as the trace shows that the system wasn't able to determine the image size (width and height).
Sorry for the false report. I just realized that I forgot to enable AVIF support in my ImageMagick installation, which is why the upload failed and showed the "Division by zero" error. My mistake for missing this setup step and for reporting it as a bug. Thanks for your help and sorry for the confusion!