If you have never downloaded YouTube on your Apple ID before (for example, if you've just created a new Apple ID on this old device), the App Store has no purchase history to reference. It will only show you the current version, which it knows is incompatible, leading to an endless error loop. As one user on Google Support put it, "when I click download it does not install it. It just keeps popping the same window".