Strange crackling sound when I record

Hello,

I use my audio-technica microphone with my UR12 interface in FL studio 21 to record with my trombone and guitar however whenever I try to do longer recordings, my recording starts crackling and the only way I can fix it is my unplugging the microphone/interface and plugging it back in. When this happens, it makes my recording completely unusable.

My computer that I use is an old macbook pro from 2015 so unsure of whether this issue is due to my computer or the microphone or interface.
Any help would be greatly appreciated.

Here’s an audio sample with my trombone from a sound test I did.

What buffer size setting are you using? Do things improve if you increase it?