Why not? If Saint Paul could persecute Christians, then later convert and repent of his past, how is it inconsistent for a pagan monarch to convert, repent and rule as a Christian?
The whole point of Christianity is that everyone sins and needs to be forgiven. It's not about doing the right...