First, if power goes out, the sprinkler valves are clearly deactivated, because the valves run on 24VAC from power adapter, they don’t run on batteries.
Next, if RPi freezes, it can indeed leave a valve on. There isn’t a watchdog timer on the OSPi to handle this potential issue. But frankly I don’t know how often RPi freezes. I’ve never encountered this myself.