If you haven't resigned, talk to the employer about more suitable conditions. See a doctor for advice. If you resign you can apply. To qualify the unemployment office will decide if you had a compelling reason. If they agree you did, you can claim benefits.