When in production, I noticed that Googlebot constantly reported a 5xx error when trying to check the page for indexing. I used a URL-checking tool for this. Interestingly, I noticed that the reason for this is that the negotiator library produces an incorrect list of languages, and passes it to the intl-localematcher, which in turn throws an error described here formatjs/formatjs#2440. The temporary fix I introduced was to fix the value of languages to just an empty list. However, negotiator itself hasn't been updated in several years already, so I think it should be replaced with smth else.