Containerized WP instances may not always point to the right location for the protected file. Give the ability to customize the absolute path with ConfigPress option:
[aam]
addon.protected-media-files.settings.absolutePath = "/absolute path to the folder with index.php"