The last "measure" is played ad lib. The way they play suggests eights to me to choose a notation, but they do not look well within the 5/4 tempo (see screenshot).
Which notation would you suggest there? Is there a way to tell Lilypond "from here to the last bar this is free do not automatically add measure bars". Or would you write that in a different way?