Error code 1 when I try to process ECG data

When I process ECG data using spectrogram, it said that “it cannot allocate 6.15 PiB for an array with shape”. And when I generate features, it showed the error code 1 and I think it might be due to the high frequency of the signal I used. I wonder how I can fix this. Thank you so much. Here are the errors.

Project ID: 126574, called ECG recognition.