While Main Heroines is totally written with whatever the author is thinking with little planning, I'm pretty sure the Sun God not actually being evil was a planned thing.

IIRC, there's a very early bit with Ferloche telling everyone that she prays to the Sun God for the strength to kill Frey, but she receives a revelation along the lines of "Don't do that".