“The URL _catalogs/fpdatasources is invalid” in SharePoint designer when publishing a workflow

When I try and publish a workflow I get the following error.

enter image description here

I have tried creating a fresh workflow in this list and other lists. this is apparently a sitewide problem. The only references I can find online to this problem are for on-premise SharePoint environments and suggest a full logging database but I’m on O365.