I want to set a timeout on binary_sensor

Hello I’m asking some binary_sensor with a modbus communication. But I would like that if my binary_sensors are unavailable, I would like homeassistant not to waste too much time on that because it slows down my whole program. Have you any solutions to make a kind of timeout ?
That’s my modbus setup (I have 16 binary_sensor) :
image