If I missed it, please forgive me. But it sounds like this could have been a "top fire". This is more often than not a reloader's error and it doesn't happen very often.
You're still looking at replacing the barrel, bolt, upper receiver and the rest.
NRA Chief Range Safety Officer, Home Firearms Safety, Pistol and Rifle Instructor
"There are three classes of people: those who see, those who see when they are shown, those who do not see."
Leonardo da Vinci