Unusual noises from a compressor are often due to mechanical defects caused by wear, lack of sufficient lubrication, dirt and debris in the oil, or issues with the refrigerant.
While hermetic compressors must be replaced, it may be possible to repair open or semi-hermetic compressors.