Often times developers close the tag too early on the page and tags like rel canonical and rel alternate are used after that point. Because Google cuts off at the head those tags aren't going to be properly processed (hence you have errors)