D1: 504 error on manual backup

I’m currently experiencing an issue with a D1 database (used to back a wildebeest instance) which fails after ~30s with a 504 error when manually triggering a backup (eventhough the dashboard shows “Successfully created backup.”). The database isn’t even terribly huge (91MB)… any pointers on how to resolve this problem?