Lag 7.792 s while recording

I’m having this trouble at recording lately: The playback mutes for a while and recording gets delayed but playback keeps at the original timing, so it cuts but dont delay though the actual recording ghets delayed/ralentized. The instrument I record ended 7.792 s later than its backing track and there’s no noticeable clicks in the recording. I’m, using jack btw.