It depends on the terms and conditions of your employment contract. Irrespective of the reasons shared by you, an Employer has the right to terminate the contract by paying one month written notice either pay or allowing to work for one month.
Now you have following options
Serve the notice period properly and get relieved properly.
Talk to your Superior - decision making authority and explain the reason for leave and assure him that you will not take unnecessary leave in future. If this doesn't work follow first option.
Alternatively challenging your employer legally is another option but this will be a lengthy process - as a Company your employer may face this spending time and money but your survival during the lengthy legal process will become tough for you.
27th June 2019 From India, Madras