Fix the serious error, even if it risks the deadline
I’d report it and push to fix it, even if that risks the deadline, because shipping something seriously wrong can blow up trust and create way bigger problems later. I’d loop in whoever needs to know immediately, be transparent about the impact, and then sprint on a correction so we miss the deadline by as little as possible—if at all.