I need to control a [bi-stable valve](https://www.aliexpress.com/item/1005003214000529.html?spm=a2g0o.order_list.0.0.4ce35e5bhA5axv&gatewayAdapt=glo2fra):

[![enter image description here](https://i.stack.imgur.com/6UW6P.png)](https://i.stack.imgur.com/6UW6P.png)

Here is the typical wiring provided for such 3 wires type valve:

[![enter image description here](https://i.stack.imgur.com/VxZ3n.png)](https://i.stack.imgur.com/VxZ3n.png)

But I don't want to continue to feed it when actually closed or opened which is normaly unnecessary. I foresee two solutions with pro and cons:

1. Add a relay on the return line. Process is switch the open/close relay first, then close the return line relay the time necessary for the transition with a pulse of the desired length. Here, no risk to feed both open and close inputs the same time.
2. Let the return line always connected like on the picture, and have two relays for control, one to open and one to close. The process would be easier, one pulse on one of the control relay, but with a risk to switch both on the same time and hurt the valve.

Both make use of two relays. What is the best solution?