The law makes sense. If someone is a convicted felon, changes their name to avoid the inevitable Google searches, and decides to run for office, that former name absolutely should be disclosed.
What's weird here is the limit of "past 5 years" and "excluding marriage."
So totally cool for a felon to change their name MORE than 5 years ago, or, simply get married, no disclosure required.
So, what you're saying is... the law actually doesn't make sense. It should be that if they were a convicted felon, then that should be disclosed along with their old name. All of the other conditions here seem unnecessary unless we want to include name changes in general, which then they need to add a space on the actual form to include this.