First thing needed is to scout it.
It is safe to go hatch first against a gateway expand (can't be cannoned). The gasless three hatch builds are not safe as you have found out.
It is really hard to hold early speeding attacks with a 1 gate expand. If you open 14-14 against you can often make the P cancel his nexus and even straight up win the game. P simply does not have many units when they are trying to expand and is relying on perfect ff. You need a different mind set, Z becomes the early aggressor and P is forced to be defensive in the early game.
Even the smallest donations help keep sc2sea running! All donations go towards helping our site run including our monthly server hosting fees and sc2sea sponsored community tournaments we host. Find out more here.