If the landlord had rented you a windowless bedroom, you might have a case on lack of habitability. I suspect however, he rented you a house with sufficient LEGAL living space to support the number of people on the lease (nothing requires you each to have your own bedroom). You were the one who chose to try to sleep in the uninhabitable space.