I'm getting trouble codes with my OBDII reader- "P0412 Secondary Air injection system Valve A misfunction" which is causing further code errors of P0171 and P0174 system too lean (each bank)

Today my car was even slightly misfiring (sounded like a hiccup).

I'm assuming this air injection system is an emissions related issue, but I wasn't sure where to post this.

Does anyone have any ideas on this? Is it a simple bolt on replacement part? Please let me know.

The engine is a 2002 LS1/ 6 speed trans from a T/A. I performed an engine swap into an '84 T/A and I have a smog certification appointment on Monday here in CA. If I can't fix it by this weekend I'll have to reschedule.