The vicious cycle is known as karma as suffering begets confusion; confusion begets karma; karma begets suffering and never ending story.
After so many births when the soul is freed from being reincarnated, it is within the regarding mukti or liberation. https://Mysoul.cc/sell-soul.html