When updating, I noticed that the last four photos uploaded were not appearing, giving an error, but when I downloaded them, they were fine. So I went to the administration menu, Tasks, and saw that the thumbnails told me that four were missing. When I clicked on the missing button, the server started to restart. It didn't matter that I recovered the database from the backups, it kept doing it. Only when I deleted these photos did it stop restarting, but if I uploaded them again, it started again. The photos are in HEIC format, but the previous ones didn't cause any problems.
Translated with DeepL.com (free version)