Kobocat docker keeps timing out and returning errors

KPI works fine without any issues, but every couple of days I face issues with kobocat (docker name kobofe_kobocat_1). It gives server errors and timeouts.

I have to restart this docker as well as nginx in order to get it working again. What could be the issue?

My CPU and memory are well above requirements.