Settings General and New Project both giving 500 error

When I click on settings → general or ‘New Project’ I get a 500 error. I have tried setting the storage weights to 0 and other values. This fix did not work for me.

Gitlab version: 14.1.6
Self-managed gitlab hosted on DigitalOcean