Might be way off the mark here but had the following myself and took ages to work out it was this.
I had tonsil stones which make your breath smell rancid and leave you tasting a very similar taste to when you have ketones, kind of pear drop like.
They are about the size of an apple seed and...