A youthful Arsenal survived a major scare against League One Mansfield to progress through to the FA Cup quarter-finals and keep their hopes of a quadruple alive.