Error in prior predictive with Gamma distribution as Likelihood

I assume this is because slope_*x + intercept_ is sometimes negative. Have you checked that with your x values?