First, I would like to congratulate you and wish you a happy and prosperous married life.
Now, I suggest that you approach your Boss/Supervisor first and ask them to allow you to leave early, as you are unable to stay longer due to your valid reasons for resigning. I am sure they will understand your situation and grant permission.
Generally, according to the terms and conditions of an employment contract, an employee is required to serve a notice period. If a person does not fulfill the notice period specified in their employment terms, they may need to compensate for the shortfall or loss of employment. For example, if the notice period is 3 months and a person wishes to leave after 2 months, they may be required to repay the company an amount equal to 2 months' salary. However, in a situation like yours, the employer can permit an early departure with a deduction for the shortened notice period.
I would also like to remind you that The Industrial Disputes Act, 1947 in India first introduced the concept of a Notice Period or Payment in lieu of a Notice Period to safeguard workers.
This system is fundamentally sound as it shields the employee from immediate income loss due to job loss and also assists the employer in finding a suitable replacement by allowing time for induction and handover of responsibilities.
In conclusion, simply communicate with your Boss and HR personnel and do not worry about legal repercussions. Additionally, I recommend visiting the following link:
https://www.citehr.com/344662-notice-period.html
Regards