Updated OS and software. Upgraded webserver to an efficient multithreaded setup and enabled serverside http/2. This will prevent the website from stalling when someone tries to load a lot of images at once, or when the site is hit by an aggressive web crawler. Thank you to
Bebop for giving me enough info to finally figure out what was wrong.