My layperson's understanding: something was fucky with the server database. It was frequently lagging out and taking down the whole instance.
@seahorse put a tremendous amount of effort and time into trying different potential fixes. We stan a true king, long may he reign.
When a fix finally worked, it had the side effect of fucking up some of the previously uploaded images. All things considered a price worth paying. The instance was almost unusable for me before.