NHS Greater Glasgow and Clyde has apologised and said “two families have been caused significant additional distress” by the error.