this should avoid said folders to be crawled and thus listed within photos.
afaik just open a new file and name it either .nomedia
or .noimage
and save it to the root of that folder.
it’s possible that you’d need to rescan your library after that so that changes might take effect (forum and manual both do know how to rescan correctly)