I doubt that this is the correct method. Why should it work with 2 folders but not with 3?
The way with predictable results is:
select all the files,
make sure that each folder has the correct album art
Create an action of the type "Import cover from file"
Enter the filename format string - this could also be *.jpg which takes the first jpg file from each folder.
Start the action.