500 error code when enabling mp4 downloads

When I send a POST request (https://api.cloudflare.com/client/v4/accounts/{account_id}/stream/{video_id}/downloads) to enable mp4 downloads after a stream has ended, I get a 500 response. But it is not consistent. Sometimes it works, sometimes it doesn’t. But if I get the 500 response once, it never works again for that particular video_id. When I send a GET request I get a status = error, and progress 0.

I even tried it in the dashboard, and it still gives me the 500 response error.