The best thing to do is contact your landlord to discuss if they are willing to terminate the contract early. You may also be able to sub-let as long is it permitted per your lease agreement.
The rental market is pretty aggressive right now so you may find the landlord willing to an early termination. You may want to also offer to help locate a replacement tenant.
Alain Pinel Realtors