You could try the fix that was proposed here:
https://github.com/LemmyNet/lemmy-ansible/issues/106#issuecomment-1606222766
This basically changes the way that nginx (nginx_internal.conf
) switches between Backend and Frontend depending on the content type specified in the request.