Resinged the job

Hi Sir/Madam, I have 3.5 years of experience. I have onboarded virtually in a MNC. I'm from Tamil nadu and my working location is Bangalore, Karnataka. I was really not well during my joining process, So I can't able to relocate on that time. I asked them to extend my joining date. But, they asked me to login through my personal laptop for one week and requested me to come to office the next week. So I have done all the documentation process from my home on the first day. The next 3 days were softskill training. And my medical condition was also prolonging. So I informed them the reasons and asked for WFH. They didn't accept, So I sent an email stating that I can't able to continue the work by relocating from my place. I haven't received any calls or emails after that. But, exactly after 8 days, I received a call from employer who is asking me to submit a resigning letter from the employers portal. I told them, that I attended only 3 days of training and quitted. After that I received an email stating that, I need to serve 2 months of notice period or else they might come up with legal actions. Please assist me on this.