Chat UI image download not working, sporadic firefox AuthenticationFailed

Download works in Chrome. However my favorite browser is Firefox and download is often broken.

For some images the download button downloads an invalid webp file. It’s consistent, if I try download that same image again then it continues to download an invalid webp file of size 489 bytes.

The 489 bytes content says
<?xml version="1.0" encoding="utf-8"?>AuthenticationFailedServer failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:db87b0d7-401e-0111-2d41-8e877e000000
Time:2024-04-14T08:01:35.1574214ZSigned expiry time [Sun, 14 Apr 2024 07:58:33 GMT] must be after signed start time [Sun, 14 Apr 2024 08:01:35 GMT]

In the same chat I have other images, that downloads fine. Downloading them again and the webp gets downloaded fine again.

It seems to be consistent limited to some images.

I use Firefox 124.0.2 (64-bit), macOS Sonoma 14.1.2 (23B92), M1 Max.