Ask a landlord-tenant lawyer and get answers ASAP
do you have a lease? when does it end? what is landlord's position?
from what you mentioned landlrod is in breach, and not providing habitable premises allowing you to end it early without penalty. You normally would get landlord consent to that, but if needed you may need to sue landlord or defend a claim by landlord. In all event, you should make your position in writing to create a record, and retain a copy.
Kindly let me know if that is fast and clear.
write them identifying the complaint, a narrative with dates and note they have failed to provide habitable premises and quiet enjoyment.
That creates a record and allows you to leave. If they sue you may defend on that record.