Bounded gaps between primes and volumes of manifolds