There's nothing to solve. Luther became a heretic and he died as a heretic.
Luther was BAPTIZED a Catholic; and by GOD!; he REMAINED a Catholic!!