Error when uploading an image to media gallery

As it says above. All I do is to try upload an image on my deployed strapi server.
It is important to mention that I do not think it is a proxy issue as I used this same proxy setup when connectiong to a development version of the server. This issue arose after building and deploying with PM2 and Pache2

This topic has been created from a Discord post (1242907235278000210) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

And also despite the fact that it errors out, every now and then, it lets a file or two through

Happens with images mainly too. If I upload like PDF or something completely dofferent it is fine