1.If you can not serve the notice period then you will have to pay the salary for those months.
2. SO THEY CAN FORCE YOU PAY THAT AMOUNT BUT NO FORCEFUL WORK IS POSSIBLE AGAINST YOUR WISH.
3.In that context send them an e-mail stating your willingness to pay the money in exchange of work in notice period.
4.If they still harass you, complaint to police can be lodged.