ChatGPT was released in November 2022 so only the last decisive blow was dished by AI. Stack Overflow was already 40% below its peek when it was struck.
However looking at the shape of this last drop, I think it wouldn't matter if the SO was in its prime when it happened. SO would die regardless, at the schedule dictated more by strengthening AI rather than its own.