Generating playlist within action-group

Hello,
I have a problem generating the playlist when I rename a folder within the action group.
I execute this action group:

[#0]
T=5
1=$num(%_counter%,3)
F=TRACK

[#1]
T=5
1=%track% - %artist% - %title%
F=_FILENAME

[#2]
T=5
1=$replace(%album%,January %year%,%year%.01,February %year%,%year%.02,March %year%,%year%.03,April %year%,%year%.04,May %year%,%year%.05,June %year%,%year%.06,July %year%,%year%.07,August %year%,%year%.08,September %year%,%year%.09,October %year%,%year%.10,November %year%,%year%.11,December %year%,%year%.12)
F=ALBUM

[#3]
T=19
F=$if($eql($replace(%artist%,Various Artists,VA,Various,VA),'VA'),'VA',000.Various Artists) - %album%.m3u
1=%_folderpath%

[#4]
T=5
1=$if($eql($replace(%artist%,Various Artists,VA,Various,VA),'VA'),'VA',Various Artists) - %album%
F=_DIRECTORY

When generating the playlist, I get this message:
File "D:\test\Various Artists - BIRP! October 2023\000.Various Artists - BIRP! 2023.10.m3u" cannot be created.

Could it be because I rename the folder from "Various Artists - BIRP! October 2023" to "Various Artists - BIRP! 2023.10" with action #4? If so, how can I change the action group to generate the playlist without an error message?

Thanks.

Actually, I do not feel like de-coding such a listing.
Which of the actions, do you think, leads to your problem?
And as soon as you have a suspect - does it work if you move that action to a separate action group and execute that as a last one?

Also see this description of the action to generate a playlist:

Thanks for the response. Are there any other ways to show or post the settings of each action here?

Each seperate action works as expected.
I think action #4 is causing the problem. It renames the folder containing the MP3s.
Before that, action #3 writes a playlist of the files into the folder. The folder is still named "Various Artists - BIRP! October 2023" at that point.
Afterwards, action #4 should rename the folder to "Various Artists - BIRP! 2023.10".

I think the problem is, that action #4 renames the folder before action #3 finishes writing the .m3u playlist into the folder.
So, It would be good if there was a function that checks if action #3 is completed before proceeding with action #4 (renaming the folder).

EDIT:
OK. I see. That's causing the problem:
"Generate Playlists actions are always executed after all other actions regardless of their position in the actions list. This is by design."

Thank you.

Could this be the problem:

Export

Use of Mp3tag’s Export as an action.

Export actions are always executed after all other actions regardless of their position in the actions list. This is by design.

I assume, generating Playlists is some kind of export. Or I'm wrong?

Same thing is said about generating playlists:
grafik