For the media right click on it in your iTunes library and select Get Info. The right side of the Summary tab identifies which account purchased the media. You have to select which items from only five accounts you want on the iPod.
Are you sure that was the correct wording of the error message?
This says you have have ten devices associated with one ID
This says you can have five computers authorized for one account