Frappe Docker Bad Gateway Randomly After Being Up For Months

My site has been running fine for months but it’s now suddenly showing a bad gateway error. Does anyone how to fix this? I tried taking down the containers and putting them up again and restarting traefik

So restarting MariaDB seemed to fix it. The error was “Aborted connection to DB: Bad Communication packets”. Any way to prevent this?