In an isothermal process, the whole heat is converted to work but not in a cycle so it doesn't break the 2nd law of thermodynamics. $$dQ=dW$$ But let's imagine a scenario with it. If we connect an isothermal system to a cold heat reservoir and get work from it and give the work to a reverse Carnot engine which transfers heat from that cold reservoir to a hot reservoir. Then we have a system that takes no external energy and transfers heat from a cold to a hot body. But this breaks the second law of thermodynamics.
Simply, if the Isothermal process can convert the whole heat from a cold body into work then that work can be given to a hot body as heat to make it hotter. According to Clausius's statement of 2nd law "Heat can never pass from a colder to a warmer body without some other change". So how can this be possible? Although the problem is not with the isothermal process because it's not a complete cycle, then where is the problem with this idea? How can heat be transferred from a cold to a hot body?