when you disable amazonS3, are photos and avatar displayed as it should be? can you please provide the screenshot of config.php file the part with the amazon settings please.
I think the answer above should help solve your problem. In another case, perhaps there is still a problem in the Amazon service itself. In this case, you can contact the customer service, the number can be found here https://amazon.pissedconsumer.com/customer-service.html