Can i quit before NDA period?

I had joined a company in chennai on july 2020, at the time of joining I joined as an embedded engineer, and also they said me that after three months your salary will be incremented there is no bond and all. But accidently i signed an NDA of the company while i started working, in that they had included that i have to stay there for 2years and 3 months notice period. Now after three months when i asked a salary hike they moved me from software side to field issue solving side which was not an expert area of me, after that they started torchuring infront of others and through phone that iam not working good,and saying your perfomance was not good. My confusion is in that NDA they had added a statement that if iam leaving before 2 years i had pay them coast of training(nothing given), and coast to take a new person, coast of project delay etc. My doubt is if iam quitting that company does they can move legally to raise that amount from me. Does they can spoil my future. NDA was in white paper with company header only, not in stamp paper, And orginal signed copy was in my hand, they only have a copy I send.