העלאת קובץ PDF בגודל 1MB מקבלת «ההעלאה גדולה מדי, המקסימום הוא 4MB»

No, as that file size is under the default nginx size limit. However that is a good clue.

The site @Julien_Palard self-hosts has a custom reverse-proxy between Discourse and the browser, so that error is probably coming from a misconfigured reverse proxy.