Branching processes with immigration in atypical random environment