@Mo5, thanks for the suggestion. When I tried only a single stick in B1, it always works. It's only when sticks are in A1 and B1 that the stick in B1 is sometimes undetected. Maybe it takes too long to detect B2, so it doesn't block until it's detected, and instead just starts with the single stick, or something like that.
I tried putting the ram in slots A2 and B2, and the ram seems to always be detected from there. I don't believe there is much of a performance penalty for using A2/B2 instead of A1/B1, so I think I'll stick with that.