A new referendum for ruler has been started. If a dev could please advise what I should do.
Huh.
I advise you to run. This should allow you to reform the government, as you desire.
However, I believe it should also be considered a bug; no regular elections should run while the realm is in anarchy.
I'll tidy that up once I'm finished implementing the proper anarchy ruler election (which I've got about 3/4 done now).