The Hidden Pitfalls of the Cosine Similarity Loss