NAL.
From what I understand, no company can force you to work based on a bond. That’s bonded labourer & those are illegal. You can leave any time. But you have to pay compensation or serve notice period to the company as stipulated in the bond. Those types are legal.