I've been eating ham that is in sealed packets with used by dates. I do live on ham and cheese toasted sandwiches at work. I think that's fine and from what I can tell so far all good.
Considering my mum and her generation were never told to avoid these things etc. and honestly I don't see there's any difference statistically between miscarriage/loss in the last 40-50 years. Seems the same.
Though I do understand the risk so i minimize it by buying the sealed packets and toasting my sandwiches. I've also eaten it in home made pizza. Again it's heated.