I have faced this issue esp. when AC was not in use for a good 4-5 months. It functions properly aka cooling was uncompromised but in between it used to emit some mild rotten or fungal odor.
I observed that in Auto mode it used to emit such foul odor. I then started to set custom temp with...