Sidekiq Stops after a random duration

Job ID: 33118428

Budget: ₹1,500 – ₹12,500 INR

We have an app built on ruby on rails that uses sidekiq.
Sidekiq runs 10 threads in parallel, and each thread fetches the data from database.

Now, after some time, sidekiq threads are getting stopped automatically. Sometimes they run for 1 hour, sometimes 2 hours or any random time, and then stop one by one. Some threads stop very early, and some run comparatively long.

It could be a memory bloating issue with sidekiq, but not sure.
I need to figure this out, and sidekiq threads should run infinitely.
Related categories: Ruby on Rails Ruby