Odysseus does not lose because he is stupid. He often loses because he wants his intelligence to be seen.
In The Odyssey, hubris is not only spectacular arrogance. It appears when a character forgets the limit separating him from the gods, from hosts, from the dead or from his own community. It turns a possible victory into a lasting fault.
The episode of Polyphemus gives the clearest example. Odysseus has already won through cunning, but he reveals his name so that the glory of the exploit returns to him. That extra speech draws Poseidon and turns a successful escape into a maritime curse.
Reading hubris therefore helps explain why the return is so difficult: danger does not come only from external monsters, but from the moment when the hero wants to occupy too much space in his own story.