Premier League side Nottingham Forest needed penalties to overcome third-tier Exeter and advance to the fifth round of the FA Cup.