Image loading problem, status code 502

Image loading problem
Format - JPG
Request failed with status code 502
When downloading images from the logs you can see that the strapi restarts
Help! What might be the problem?

System Information
  • Strapi Version: v4.1.7
  • Operating System: - macOS Montery 12.2.1
  • Database: mysql Ver 8.0.28 for Linux on x86_64 (MySQL Community Server - GPL)
  • Node Version: v16.15.0
  • Yarn Version: 1.22.18