You’ll really need to take the contract to an attorney to interpret it for you but
an employment contract for a stated period of time generally means neither party can terminate the contract without cause.
So may be quite possible the can sue you, and win.
and depending on what your new employer knew of your situation and what actions they took to engage you, yes, it may be possible to sue them as well. They should refer this to their legal department to handle it.

