Double publish required for any item in CMS

<%- if @topic_view.topic.tags.present? %>
<%= t 'js.tagging.tags' %>: <%- @topic_view.topic.tags.each do |t| %> <%= t %> <%- end %>
<% end %>

Silverstripe Version: 4.6.0

Question:

Every time I try to publish something (can be anything - page or dataobject) I get an error the first time around. If I click publish again it works fine.

The logs show a 400 bad request error

Error from the logs as follows:

2021-03-02T21:27:57.516803300Z [2021-03-02 21:27:57] error-log.WARNING: E_USER_WARNING: Client error: `GET https://graph.facebook.com/?id=http%3A%2F%2Flocalhost%3A8000%2Fbuy%2Frug-doctor-accessories%2Fbrush-for-mighty-pro-machine%2F&scrape=1` resulted in a `400 Bad Request` response: {"error":{"message":"(#2) Service temporarily unavailable","type":"OAuthException","is_transient":true,"code":2,"fbtrace (truncated...) {"code":512,"message":"Client error: `GET https://graph.facebook.com/?id=http%3A%2F%2Flocalhost%3A8000%2Fbuy%2Frug-doctor-accessories%2Fbrush-for-mighty-pro-machine%2F&scrape=1` resulted in a `400 Bad Request` response:\n{\"error\":{\"message\":\"(#2) Service temporarily unavailable\",\"type\":\"OAuthException\",\"is_transient\":true,\"code\":2,\"fbtrace (truncated...)\n","file":"/var/www/html/vendor/jonom/silverstripe-share-care/src/ShareCare.php","line":113} []

2021-03-02T21:27:57.516850400Z [Tue Mar 02 21:27:57.516334 2021] [php7:warn] [pid 28] [client 172.22.0.1:58798] PHP Warning: Client error: `GET https://graph.facebook.com/?id=http%3A%2F%2Flocalhost%3A8000%2Fbuy%2Frug-doctor-accessories%2Fbrush-for-mighty-pro-machine%2F&scrape=1` resulted in a `400 Bad Request` response:\n{"error":{"message":"(#2) Service temporarily unavailable","type":"OAuthException","is_transient":true,"code":2,"fbtrace (truncated...)\n in /var/www/html/vendor/jonom/silverstripe-share-care/src/ShareCare.php on line 113, referer: http://localhost:8000/admin/catalog/SilverShop-Page-Product/EditForm/field/SilverShop-Page-Product/item/72/edit?gridState-SilverShop-Page-Product-0=%7B%22GridFieldSortableHeader%22%3A%7B%22SortColumn%22%3A%5B%5D%7D%2C%22GridFieldFilterHeader%22%3A%7B%22Columns%22%3Anull%7D%2C%22GridFieldPaginator%22%3A%7B%22currentPage%22%3A1%2C%22itemsPerPage%22%3A30%7D%7D

2021-03-02T21:27:58.185854200Z [2021-03-02 21:27:58] error-log.WARNING: E_USER_WARNING: Couldn't set response type to 500 because of output on line 419 of /var/www/html/vendor/silverstripe/framework/src/Control/HTTPResponse.php {"code":512,"message":"Couldn't set response type to 500 because of output on line 419 of /var/www/html/vendor/silverstripe/framework/src/Control/HTTPResponse.php","file":"/var/www/html/vendor/silverstripe/framework/src/Control/HTTPResponse.php","line":397} []

2021-03-02T21:27:58.185907000Z [Tue Mar 02 21:27:58.185644 2021] [php7:warn] [pid 28] [client 172.22.0.1:58798] PHP Warning: Couldn't set response type to 500 because of output on line 419 of /var/www/html/vendor/silverstripe/framework/src/Control/HTTPResponse.php in /var/www/html/vendor/silverstripe/framework/src/Control/HTTPResponse.php on line 397, referer: http://localhost:8000/admin/catalog/SilverShop-Page-Product/EditForm/field/SilverShop-Page-Product/item/72/edit?gridState-SilverShop-Page-Product-0=%7B%22GridFieldSortableHeader%22%3A%7B%22SortColumn%22%3A%5B%5D%7D%2C%22GridFieldFilterHeader%22%3A%7B%22Columns%22%3Anull%7D%2C%22GridFieldPaginator%22%3A%7B%22currentPage%22%3A1%2C%22itemsPerPage%22%3A30%7D%7D

2021-03-02T21:27:58.203202700Z 172.22.0.1 - - [02/Mar/2021:21:27:55 +0000] "POST /admin/catalog/SilverShop-Page-Product/EditForm/field/SilverShop-Page-Product/item/72/ItemEditForm/ HTTP/1.1" 500 112671 "http://localhost:8000/admin/catalog/SilverShop-Page-Product/EditForm/field/SilverShop-Page-Product/item/72/edit?gridState-SilverShop-Page-Product-0=%7B%22GridFieldSortableHeader%22%3A%7B%22SortColumn%22%3A%5B%5D%7D%2C%22GridFieldFilterHeader%22%3A%7B%22Columns%22%3Anull%7D%2C%22GridFieldPaginator%22%3A%7B%22currentPage%22%3A1%2C%22itemsPerPage%22%3A30%7D%7D" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.192 Safari/537.36"