Sulphur dioxide, mildew, toilet waste, or what?
Does the shower or ice box/refrig drain into the bilge. Can you leave a hatch open under a dodger? Do you have dorades?
There are a number of causes and mitigating strategies.