See, what you are missing here is the AI revolution. With Erso dead, they needed a new death star, but had no-one to design it, so the Emperor trained an AI model on Erso's work on the original death star, and it faithfully copied the critical vulnerabilities as being a required component...