Finally rid of the issue that kept taking the servers down. It was a bug in nextjs that was recently patched in a prerelease. Now I can actually work.