Ship loses more than 500 containers in heavy seas