No open space contiguous to any building shall be encroached upon or reduced in any manner except in conformity to the yard, lot, lot area, building location, percentage of lot coverage, offstreet parking space, and such other regulations designed elsewhere in this chapter for the zone district in which the building or space is located. In the event of any such unlawful encroachment or reduction, such building shall be deemed a violation of this chapter and the certificate of occupancy for such building shall become null and void.