Prometheus container restarting

I am getting the following msg from Prometheus container logs , does any know how to fix it? And due to this my proemtheus container restarts?

Does anyone have a fix for the above error?

I got this issue fixed by increasing the memory.
https://www.percona.com/blog/2018/09/20/prometheus-2-times-series-storage-performance-analyses/
https://prometheus.io/docs/prometheus/1.8/storage/
https://www.robustperception.io/how-much-ram-does-prometheus-2-x-need-for-cardinality-and-ingestion

https://github.com/prometheus/prometheus/issues/5577