Dashboard 2.0: Can't save Layout Editor Request failed with status code 500

When I try to save the layout editor of dashboard 2.0 i get the error Request failed with status code 500.

How can I solve this?

Screenshot from 2025-03-18 09-10-10

How is your node-red setup & how is it served? (home assistant / docker?, embedded device?, etc)

Any special changes to how node-red and dashboard are served (specific settings.js tweaks etc around http admin endpoint etc)?

Is it behind a reverse proxy (haproxy/nginx/etc)?

It's running in Docker on a Synology DS224+ nas using reverse proxy. Everything else works fine.