I decided to talk to ChatGPT about it. I explained the problem and asked for plausible causes. It gave me a list from which I explored a few based on my judgment. After a bit of back and forth, I figured out the problem.