You can argue about the range and drop some hands and add in others, but this is never going to be a great spot.
Its clearly not the greatest of spots. The question is whether or not folding here is a mistake. To accurately answer we really need to know more about villain but against an unknown I'd say it probably was as he is drawing here way more than he has flopped a straight.
mess about with stove m8 - you will find it very hard to get a realistic range that makes folding much of a mistake if any.