E92 M3 help needed

Hey guys so I own a high mileage e92 at right under 95k miles. This morning, the car went into limp mode and gave me an Engine Malfunction, Reduced Power and Increased Emissions notification. I was almost certain this was due to the throttle actuators as they haven’t been replaced but my code reader is showing a P0305 code (a misfire in cylinder #5) and the o2 sensor + htr lights are blinking. Does this mean I need to do coilpacks and spark plugs or could it still be one of the TA’s?