So for anyone wondering
SOLUTION: Finally after searching and looking on my server configurations I saw that a virtualhost on virtualmin was 0.33 GB over its 1GB quota. I did not think that the issue was related but after changing that Quota and restarting the container the problem seems to go away. So for other people facing a similar problem check for you user Quotas and usage even if it seems unrelated