First of all, division by zero is not infinity, but undefined. Being more specific about your question, Bayes theorem is
$$
p(\theta|X) = \frac{p(X|\theta)\;p(\theta)}{\int p(X|\theta)\;p(\theta)\; d\theta}
$$
so to see exact zero in the denominator, you would also need to see zeroes in the numerator, either in the likelihood $p(X|\theta)$, or prior $p(\theta)$. As stated in comments, this would mean that you observed data that is impossible under your model. Such situation should never happen, it suggests that either your model is wrong, or as discussed in one of the threads in the comments, it is a problem with insufficient data that needs to be handled.