Most carriers won't allow 5 legs in each direction. If they do, simply requesting 5 legs often isn't enough because ITA gets overwhelmed and freaks out. Instead try specifying specific connections. For example, if I wanted to fly IAH-EWR-HNL-GUM-NRT-SIN I should enter EWR HNL GUM NRT in the advanced routing code field.