DFPlayer and attiny85

Good afternoon, I'm working on a project with attiny85 and the dfplayer with the DFPlayerMini_Fast library. The project is quite simple, a module that when turned on plays an audio file of about 30 seconds in a loop, until it is disconnected.
With the loop function in the void setup it works, but the problem is that sometimes the playback stops and it doesn't play again.
That is why I was thinking of adding a confirmation in the void loop that it is playing with the isPlaying function of the library, to restart the loop playback if there is a problem.
When adding this line with isPlaying in the void loop I get this error

data section exceeds available space on board
Sketch uses 4672 bytes (57%) of program storage space. Maximum is 8192 bytes.
Global variables use 516 bytes (100%) of dynamic memory, leaving -4 bytes for local variables. Maximum is 512 bytes.
Not enough memory; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing your footprint.
Error compiling for board ATtiny25/45/85 (No bootloader).

Is there something I can do? Or is this function not possible with attiny85?
thank you so much

I agree. Need your original code for changes to be proposed.

Another angle would be to wire the DFMiniPlayer in I/O mode and apply a short LOW to the IO_2 or IO_1 pin to start the audio.

And then poll the BUSY pin to see when it ends.

It may glitch, though - some brief pause from when the track actually ends and when it's restarted.

sorry
the code:


#include <DFPlayerMini_Fast.h>

#include <SoftwareSerial.h>
SoftwareSerial mySerial(1, 4); // RX, TX
DFPlayerMini_Fast myMP3;

void setup() {
Serial.begin(115200);

  mySerial.begin(9600);
    myMP3.begin(mySerial, true);

    myMP3.volume(30);
    delay(1000);
    myMP3.loop(1);//  }
}

void loop() {

    myMP3.loop(1);//  
    Serial.println( myMP3.isPlaying());
    }