Probably ultimately from Italian uaio (“mess”), regional (Southern) variant of guaio (“woe”), perhaps via Occitan oai.
ouaï m (plural ouaïs)