Smelly old paint on walls
Short answer: It will have to air out for weeks to months.

It may be possible to heat the room up as hot as you can get it to speed the out-gassing process.

Moral of the story: NEVER paint with old sour paint.

Good luck!