if it were me i'd sacrifice the carpet. rip it out.
better to live with a less attractive looking floor than with a horrid smell.
i have to be careful about chemicals in my home but i use tons of natures miracle and vinegar. i wonder if natures miracle would help in this instance?
and this...