Doubtful it could cause harm. The dates on packaged food usually don’t mean the food isn’t immediately unsafe to consume, especially anything non refrigerated. Just means it’s not going to be highest quality after that date generally speaking. What did you eat?
Update - I'm currently having another miscarrige
I’m so sorry 😢
What type of food , either way you’ll be fine , might cause you a little bit of stomach upset depending on what it was but