Galen betrays the Empire, but it also doesn’t arguably take away from Luke’s miracle.
This is exactly what happens in the movie already though. The flaw Galen left on the Death Star was a leaking reactor. How to get to the reactor is a whole different matter - Luke’s miracle.