Sounds like your flour was rancid. I've had that happen with rolled oats and couldn't figure
out why it smelled like dirty socks when baking. LOL. If you don't bake a lot, you might
be better off buying flour in small bags and storing them in tightly sealed containers.