The problem is the_tags outputs the tag names surrounded by anchor tags, which I’m guessing then break out of the alt tag.
As to a solution, off the top of my head, you could output the tags to an array in the header, strip the anchor tags, then output this array into your alt text. May not be the best way to do it though.
Matt