Dash App gives 502 error

I have a dash app deployed to render. One of the page handles over 1gb of data. I am using polars for it and have two visualizations. But the logs intermittently gives 502 on POST requests when I interact with filters. The app is still interactive but the figures doesn’t update for a couple of minutes and then everything gets back to normal. And the workers are booted again.

Any help regarding this would be great…

I get your code used more than 32 gb memory to run in redis events. Even autoscaling to 2 instances gives the same error as well