Serendipity usually means finding something welcome or useful by chance. An event that only causes harm is better described as bad luck, an accident or an unfortunate coincidence.
Something inconvenient can still lead to serendipity. A delayed train might give you time to discover a useful book. The discovery is serendipitous, even if the delay was annoying. Our serendipity dictionary entry explains the meaning.
Related question: What makes serendipity different from a coincidence?
Reference: Cambridge Dictionary: Serendipity.
