It can handle at least two hundreds of portraits, at least it does for me

.
I haven't noticed that L and S matter. I have thought them to be a naming custom.
Try this:
Empty your Portraits folder.
Find portrait(s) you want to use and put only them into the folder.
Load Shadow Keeper and open your saved game.
Change portrait(s) (by clicking below the existing one).