Sometimes yay gives me "error: failed to write to pipe (Channel break)"

Have a look here: Error message "broken pipe" during system update