" This makes sense ("hard" seems more likely than "harsh"), but it doesn't seem the most usual way of expressing the idea in everyday English. You could say "Don't work yourself too hard" or "Don't overdo it". The second one isn't right; the nearest correct expression would be "Don't be (too) hard on yourself".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.